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