65 references to NewItemPlaceholder
PresentationFramework (65)
MS\Internal\Data\CollectionViewProxy.cs (1)
332item != NewItemPlaceholder && item != ((IEditableCollectionView)this).CurrentAddItem)
MS\Internal\Data\PropertyPathWorker.cs (1)
937else if (parent == CollectionView.NewItemPlaceholder ||
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
831return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
563return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Controls\DataGrid.cs (11)
823if (item == CollectionView.NewItemPlaceholder || 2123if (SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 2126UnselectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2224SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2660if (itemToRemove != CollectionView.NewItemPlaceholder) 3653SetCurrentItem(CollectionView.NewItemPlaceholder); 3659SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 3772DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3818if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 3838return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 5568if (currentInfo.Item == CollectionView.NewItemPlaceholder)
System\Windows\Controls\DataGridRow.cs (3)
706var isRealItem = row.Item != CollectionView.NewItemPlaceholder; 734if (row.Item == CollectionView.NewItemPlaceholder && owningDataGrid != null) 750if (row.Item == CollectionView.NewItemPlaceholder)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
131if (value == CollectionView.NewItemPlaceholder)
System\Windows\Data\BindingGroup.cs (2)
807dataContextItem != CollectionView.NewItemPlaceholder && 1003mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder)
System\Windows\Data\BindingListCollectionView.cs (19)
90return (item == NewItemPlaceholder) ? (NewItemPlaceholderPosition != NewItemPlaceholderPosition.None) 453NewItemPlaceholder, 460NewItemPlaceholder, 473NewItemPlaceholder, 483NewItemPlaceholder, 497NewItemPlaceholder, 505NewItemPlaceholder, 529_group.RemoveSpecialItem(index, NewItemPlaceholder, false /*loading*/); 534_group.InsertSpecialItem(index, NewItemPlaceholder, false /*loading*/); 896if (item == CollectionView.NewItemPlaceholder) 954if (item == NewItemPlaceholder) 1367if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 1688if (item == NewItemPlaceholder) 1755return NewItemPlaceholder; 1769return NewItemPlaceholder; 1783if (item == NewItemPlaceholder) 1839if (proposedCurrentItem == NewItemPlaceholder) 2259_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 2286_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);
System\Windows\Data\CollectionView.cs (3)
511if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 1558if (item != null && item != NewItemPlaceholder) 1691return (_position == Position.OnPlaceholder) ? CollectionView.NewItemPlaceholder
System\Windows\Data\ListCollectionView.cs (22)
139if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 204if (proposedCurrentItem != NewItemPlaceholder) 566NewItemPlaceholder, 573NewItemPlaceholder, 586NewItemPlaceholder, 596NewItemPlaceholder, 610NewItemPlaceholder, 618NewItemPlaceholder, 642_group.RemoveSpecialItem(index, NewItemPlaceholder, false /*loading*/); 647_group.InsertSpecialItem(index, NewItemPlaceholder, false /*loading*/); 1074if (item == CollectionView.NewItemPlaceholder) 1151if (item == NewItemPlaceholder) 1893bool isSpecialItem = (newItem == NewItemPlaceholder || 1996if (NewItemPlaceholder != newItem) 2014if (NewItemPlaceholder != newItem) 2152if (item == NewItemPlaceholder) 2217return NewItemPlaceholder; 2234return NewItemPlaceholder; 2253if (item == NewItemPlaceholder) 2639if (item == NewItemPlaceholder) 2949_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 2976_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);