65 references to NewItemPlaceholder
PresentationFramework (65)
MS\Internal\Data\CollectionViewProxy.cs (1)
333item != 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)
566return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Controls\DataGrid.cs (11)
823if (item == CollectionView.NewItemPlaceholder || 2135if (SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 2138UnselectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2236SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2672if (itemToRemove != CollectionView.NewItemPlaceholder) 3665SetCurrentItem(CollectionView.NewItemPlaceholder); 3671SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 3784DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3830if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 3850return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 5580if (currentInfo.Item == CollectionView.NewItemPlaceholder)
System\Windows\Controls\DataGridRow.cs (3)
712var isRealItem = row.Item != CollectionView.NewItemPlaceholder; 740if (row.Item == CollectionView.NewItemPlaceholder && owningDataGrid != null) 756if (row.Item == CollectionView.NewItemPlaceholder)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
131if (value == CollectionView.NewItemPlaceholder)
System\Windows\Data\BindingGroup.cs (2)
810dataContextItem != CollectionView.NewItemPlaceholder && 1009mentor.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) 1689if (item == NewItemPlaceholder) 1756return NewItemPlaceholder; 1770return NewItemPlaceholder; 1784if (item == NewItemPlaceholder) 1840if (proposedCurrentItem == NewItemPlaceholder) 2260_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 2287_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) 2642if (item == NewItemPlaceholder) 2952_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 2979_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);