65 references to NewItemPlaceholder
PresentationFramework (65)
MS\Internal\Data\CollectionViewProxy.cs (1)
339
item !=
NewItemPlaceholder
&& item != ((IEditableCollectionView)this).CurrentAddItem)
MS\Internal\Data\PropertyPathWorker.cs (1)
954
else if (parent == CollectionView.
NewItemPlaceholder
||
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
841
return (item == CollectionView.
NewItemPlaceholder
) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
572
return (item == CollectionView.
NewItemPlaceholder
) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Controls\DataGrid.cs (11)
830
if (item == CollectionView.
NewItemPlaceholder
||
2144
if (SelectedItems.Contains(CollectionView.
NewItemPlaceholder
))
2147
UnselectItem(NewItemInfo(CollectionView.
NewItemPlaceholder
));
2245
SelectItem(NewItemInfo(CollectionView.
NewItemPlaceholder
));
2693
if (itemToRemove != CollectionView.
NewItemPlaceholder
)
3692
SetCurrentItem(CollectionView.
NewItemPlaceholder
);
3698
SelectItem(NewItemInfo(CollectionView.
NewItemPlaceholder
));
3811
DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.
NewItemPlaceholder
);
3860
if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.
NewItemPlaceholder
))
3880
return (item == CollectionView.
NewItemPlaceholder
) || (item == DataGrid.NewItemPlaceholder);
5622
if (currentInfo.Item == CollectionView.
NewItemPlaceholder
)
System\Windows\Controls\DataGridRow.cs (3)
724
var isRealItem = row.Item != CollectionView.
NewItemPlaceholder
;
752
if (row.Item == CollectionView.
NewItemPlaceholder
&& owningDataGrid != null)
768
if (row.Item == CollectionView.
NewItemPlaceholder
)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
135
if (value == CollectionView.
NewItemPlaceholder
)
System\Windows\Data\BindingGroup.cs (2)
825
dataContextItem != CollectionView.
NewItemPlaceholder
&&
1027
mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.
NewItemPlaceholder
)
System\Windows\Data\BindingListCollectionView.cs (19)
96
return (item ==
NewItemPlaceholder
) ? (NewItemPlaceholderPosition != NewItemPlaceholderPosition.None)
459
NewItemPlaceholder
,
466
NewItemPlaceholder
,
479
NewItemPlaceholder
,
489
NewItemPlaceholder
,
503
NewItemPlaceholder
,
511
NewItemPlaceholder
,
535
_group.RemoveSpecialItem(index,
NewItemPlaceholder
, false /*loading*/);
540
_group.InsertSpecialItem(index,
NewItemPlaceholder
, false /*loading*/);
911
if (item == CollectionView.
NewItemPlaceholder
)
969
if (item ==
NewItemPlaceholder
)
1388
if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) !=
NewItemPlaceholder
)
1710
if (item ==
NewItemPlaceholder
)
1777
return
NewItemPlaceholder
;
1791
return
NewItemPlaceholder
;
1805
if (item ==
NewItemPlaceholder
)
1861
if (proposedCurrentItem ==
NewItemPlaceholder
)
2281
_group.InsertSpecialItem(0,
NewItemPlaceholder
, true /*loading*/);
2308
_group.InsertSpecialItem(_group.Items.Count,
NewItemPlaceholder
, true /*loading*/);
System\Windows\Data\CollectionView.cs (3)
519
if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(
NewItemPlaceholder
, item))
1575
if (item != null && item !=
NewItemPlaceholder
)
1711
return (_position == Position.OnPlaceholder) ? CollectionView.
NewItemPlaceholder
System\Windows\Data\ListCollectionView.cs (22)
146
if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) !=
NewItemPlaceholder
)
211
if (proposedCurrentItem !=
NewItemPlaceholder
)
573
NewItemPlaceholder
,
580
NewItemPlaceholder
,
593
NewItemPlaceholder
,
603
NewItemPlaceholder
,
617
NewItemPlaceholder
,
625
NewItemPlaceholder
,
649
_group.RemoveSpecialItem(index,
NewItemPlaceholder
, false /*loading*/);
654
_group.InsertSpecialItem(index,
NewItemPlaceholder
, false /*loading*/);
1090
if (item == CollectionView.
NewItemPlaceholder
)
1167
if (item ==
NewItemPlaceholder
)
1918
bool isSpecialItem = (newItem ==
NewItemPlaceholder
||
2021
if (
NewItemPlaceholder
!= newItem)
2039
if (
NewItemPlaceholder
!= newItem)
2177
if (item ==
NewItemPlaceholder
)
2242
return
NewItemPlaceholder
;
2259
return
NewItemPlaceholder
;
2278
if (item ==
NewItemPlaceholder
)
2667
if (item ==
NewItemPlaceholder
)
2977
_group.InsertSpecialItem(0,
NewItemPlaceholder
, true /*loading*/);
3004
_group.InsertSpecialItem(_group.Items.Count,
NewItemPlaceholder
, true /*loading*/);