65 references to NewItemPlaceholder
PresentationFramework (65)
MS\Internal\Data\CollectionViewProxy.cs (1)
339item != NewItemPlaceholder && item != ((IEditableCollectionView)this).CurrentAddItem)
MS\Internal\Data\PropertyPathWorker.cs (1)
954else if (parent == CollectionView.NewItemPlaceholder ||
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
841return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
572return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder);
System\Windows\Controls\DataGrid.cs (11)
830if (item == CollectionView.NewItemPlaceholder || 2144if (SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 2147UnselectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2245SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2693if (itemToRemove != CollectionView.NewItemPlaceholder) 3692SetCurrentItem(CollectionView.NewItemPlaceholder); 3698SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 3811DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3860if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 3880return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 5622if (currentInfo.Item == CollectionView.NewItemPlaceholder)
System\Windows\Controls\DataGridRow.cs (3)
724var isRealItem = row.Item != CollectionView.NewItemPlaceholder; 752if (row.Item == CollectionView.NewItemPlaceholder && owningDataGrid != null) 768if (row.Item == CollectionView.NewItemPlaceholder)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
135if (value == CollectionView.NewItemPlaceholder)
System\Windows\Data\BindingGroup.cs (2)
825dataContextItem != CollectionView.NewItemPlaceholder && 1027mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder)
System\Windows\Data\BindingListCollectionView.cs (19)
96return (item == NewItemPlaceholder) ? (NewItemPlaceholderPosition != NewItemPlaceholderPosition.None) 459NewItemPlaceholder, 466NewItemPlaceholder, 479NewItemPlaceholder, 489NewItemPlaceholder, 503NewItemPlaceholder, 511NewItemPlaceholder, 535_group.RemoveSpecialItem(index, NewItemPlaceholder, false /*loading*/); 540_group.InsertSpecialItem(index, NewItemPlaceholder, false /*loading*/); 911if (item == CollectionView.NewItemPlaceholder) 969if (item == NewItemPlaceholder) 1388if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 1710if (item == NewItemPlaceholder) 1777return NewItemPlaceholder; 1791return NewItemPlaceholder; 1805if (item == NewItemPlaceholder) 1861if (proposedCurrentItem == NewItemPlaceholder) 2281_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 2308_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);
System\Windows\Data\CollectionView.cs (3)
519if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 1575if (item != null && item != NewItemPlaceholder) 1711return (_position == Position.OnPlaceholder) ? CollectionView.NewItemPlaceholder
System\Windows\Data\ListCollectionView.cs (22)
146if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 211if (proposedCurrentItem != NewItemPlaceholder) 573NewItemPlaceholder, 580NewItemPlaceholder, 593NewItemPlaceholder, 603NewItemPlaceholder, 617NewItemPlaceholder, 625NewItemPlaceholder, 649_group.RemoveSpecialItem(index, NewItemPlaceholder, false /*loading*/); 654_group.InsertSpecialItem(index, NewItemPlaceholder, false /*loading*/); 1090if (item == CollectionView.NewItemPlaceholder) 1167if (item == NewItemPlaceholder) 1918bool isSpecialItem = (newItem == NewItemPlaceholder || 2021if (NewItemPlaceholder != newItem) 2039if (NewItemPlaceholder != newItem) 2177if (item == NewItemPlaceholder) 2242return NewItemPlaceholder; 2259return NewItemPlaceholder; 2278if (item == NewItemPlaceholder) 2667if (item == NewItemPlaceholder) 2977_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 3004_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);