65 references to NewItemPlaceholder
PresentationFramework (65)
MS\Internal\Data\CollectionViewProxy.cs (1)
334item != NewItemPlaceholder && item != ((IEditableCollectionView)this).CurrentAddItem)
MS\Internal\Data\PropertyPathWorker.cs (1)
936else if (parent == CollectionView.NewItemPlaceholder ||
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
832return (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)
824if (item == CollectionView.NewItemPlaceholder || 2136if (SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 2139UnselectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2237SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2673if (itemToRemove != CollectionView.NewItemPlaceholder) 3666SetCurrentItem(CollectionView.NewItemPlaceholder); 3672SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 3785DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3831if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 3851return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 5581if (currentInfo.Item == CollectionView.NewItemPlaceholder)
System\Windows\Controls\DataGridRow.cs (3)
713var isRealItem = row.Item != CollectionView.NewItemPlaceholder; 741if (row.Item == CollectionView.NewItemPlaceholder && owningDataGrid != null) 757if (row.Item == CollectionView.NewItemPlaceholder)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
132if (value == CollectionView.NewItemPlaceholder)
System\Windows\Data\BindingGroup.cs (2)
811dataContextItem != CollectionView.NewItemPlaceholder && 1010mentor.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*/); 897if (item == CollectionView.NewItemPlaceholder) 955if (item == NewItemPlaceholder) 1368if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 1690if (item == NewItemPlaceholder) 1757return NewItemPlaceholder; 1771return NewItemPlaceholder; 1785if (item == NewItemPlaceholder) 1841if (proposedCurrentItem == NewItemPlaceholder) 2261_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 2288_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);
System\Windows\Data\CollectionView.cs (3)
512if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 1559if (item != null && item != NewItemPlaceholder) 1692return (_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*/); 1075if (item == CollectionView.NewItemPlaceholder) 1152if (item == NewItemPlaceholder) 1894bool isSpecialItem = (newItem == NewItemPlaceholder || 1997if (NewItemPlaceholder != newItem) 2015if (NewItemPlaceholder != newItem) 2153if (item == NewItemPlaceholder) 2218return NewItemPlaceholder; 2235return NewItemPlaceholder; 2254if (item == NewItemPlaceholder) 2643if (item == NewItemPlaceholder) 2953_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 2980_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);