65 references to NewItemPlaceholder
PresentationFramework (65)
MS\Internal\Data\CollectionViewProxy.cs (1)
337
item !=
NewItemPlaceholder
&& item != ((IEditableCollectionView)this).CurrentAddItem)
MS\Internal\Data\PropertyPathWorker.cs (1)
948
else if (parent == CollectionView.
NewItemPlaceholder
||
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
835
return (item == CollectionView.
NewItemPlaceholder
) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
567
return (item == CollectionView.
NewItemPlaceholder
) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Controls\DataGrid.cs (11)
827
if (item == CollectionView.
NewItemPlaceholder
||
2141
if (SelectedItems.Contains(CollectionView.
NewItemPlaceholder
))
2144
UnselectItem(NewItemInfo(CollectionView.
NewItemPlaceholder
));
2242
SelectItem(NewItemInfo(CollectionView.
NewItemPlaceholder
));
2690
if (itemToRemove != CollectionView.
NewItemPlaceholder
)
3689
SetCurrentItem(CollectionView.
NewItemPlaceholder
);
3695
SelectItem(NewItemInfo(CollectionView.
NewItemPlaceholder
));
3808
DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.
NewItemPlaceholder
);
3857
if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.
NewItemPlaceholder
))
3877
return (item == CollectionView.
NewItemPlaceholder
) || (item == DataGrid.NewItemPlaceholder);
5619
if (currentInfo.Item == CollectionView.
NewItemPlaceholder
)
System\Windows\Controls\DataGridRow.cs (3)
720
var isRealItem = row.Item != CollectionView.
NewItemPlaceholder
;
748
if (row.Item == CollectionView.
NewItemPlaceholder
&& owningDataGrid != null)
764
if (row.Item == CollectionView.
NewItemPlaceholder
)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
132
if (value == CollectionView.
NewItemPlaceholder
)
System\Windows\Data\BindingGroup.cs (2)
820
dataContextItem != CollectionView.
NewItemPlaceholder
&&
1022
mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.
NewItemPlaceholder
)
System\Windows\Data\BindingListCollectionView.cs (19)
91
return (item ==
NewItemPlaceholder
) ? (NewItemPlaceholderPosition != NewItemPlaceholderPosition.None)
454
NewItemPlaceholder
,
461
NewItemPlaceholder
,
474
NewItemPlaceholder
,
484
NewItemPlaceholder
,
498
NewItemPlaceholder
,
506
NewItemPlaceholder
,
530
_group.RemoveSpecialItem(index,
NewItemPlaceholder
, false /*loading*/);
535
_group.InsertSpecialItem(index,
NewItemPlaceholder
, false /*loading*/);
906
if (item == CollectionView.
NewItemPlaceholder
)
964
if (item ==
NewItemPlaceholder
)
1383
if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) !=
NewItemPlaceholder
)
1705
if (item ==
NewItemPlaceholder
)
1772
return
NewItemPlaceholder
;
1786
return
NewItemPlaceholder
;
1800
if (item ==
NewItemPlaceholder
)
1856
if (proposedCurrentItem ==
NewItemPlaceholder
)
2276
_group.InsertSpecialItem(0,
NewItemPlaceholder
, true /*loading*/);
2303
_group.InsertSpecialItem(_group.Items.Count,
NewItemPlaceholder
, true /*loading*/);
System\Windows\Data\CollectionView.cs (3)
515
if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(
NewItemPlaceholder
, item))
1571
if (item != null && item !=
NewItemPlaceholder
)
1707
return (_position == Position.OnPlaceholder) ? CollectionView.
NewItemPlaceholder
System\Windows\Data\ListCollectionView.cs (22)
140
if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) !=
NewItemPlaceholder
)
205
if (proposedCurrentItem !=
NewItemPlaceholder
)
567
NewItemPlaceholder
,
574
NewItemPlaceholder
,
587
NewItemPlaceholder
,
597
NewItemPlaceholder
,
611
NewItemPlaceholder
,
619
NewItemPlaceholder
,
643
_group.RemoveSpecialItem(index,
NewItemPlaceholder
, false /*loading*/);
648
_group.InsertSpecialItem(index,
NewItemPlaceholder
, false /*loading*/);
1084
if (item == CollectionView.
NewItemPlaceholder
)
1161
if (item ==
NewItemPlaceholder
)
1912
bool isSpecialItem = (newItem ==
NewItemPlaceholder
||
2015
if (
NewItemPlaceholder
!= newItem)
2033
if (
NewItemPlaceholder
!= newItem)
2171
if (item ==
NewItemPlaceholder
)
2236
return
NewItemPlaceholder
;
2253
return
NewItemPlaceholder
;
2272
if (item ==
NewItemPlaceholder
)
2661
if (item ==
NewItemPlaceholder
)
2971
_group.InsertSpecialItem(0,
NewItemPlaceholder
, true /*loading*/);
2998
_group.InsertSpecialItem(_group.Items.Count,
NewItemPlaceholder
, true /*loading*/);