70 references to NewItemPlaceholder
PresentationFramework (65)
src\Framework\MS\Internal\Data\CollectionViewProxy.cs (1)
342item != NewItemPlaceholder && item != ((IEditableCollectionView)this).CurrentAddItem)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
951else if (parent == CollectionView.NewItemPlaceholder ||
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
815return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder);
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
582return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder);
src\Framework\System\Windows\Controls\DataGrid.cs (11)
831if (item == CollectionView.NewItemPlaceholder || 2148if (SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 2151UnselectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2249SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 2698if (itemToRemove != CollectionView.NewItemPlaceholder) 3697SetCurrentItem(CollectionView.NewItemPlaceholder); 3703SelectItem(NewItemInfo(CollectionView.NewItemPlaceholder)); 3816DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 3865if (HasNewItemPlaceholder && SelectedItems.Contains(CollectionView.NewItemPlaceholder)) 3885return (item == CollectionView.NewItemPlaceholder) || (item == DataGrid.NewItemPlaceholder); 5627if (currentInfo.Item == CollectionView.NewItemPlaceholder)
src\Framework\System\Windows\Controls\DataGridRow.cs (3)
725var isRealItem = row.Item != CollectionView.NewItemPlaceholder; 753if (row.Item == CollectionView.NewItemPlaceholder && owningDataGrid != null) 769if (row.Item == CollectionView.NewItemPlaceholder)
src\Framework\System\Windows\Controls\MultipleCopiesCollection.cs (1)
136if (value == CollectionView.NewItemPlaceholder)
src\Framework\System\Windows\Data\BindingGroup.cs (2)
827dataContextItem != CollectionView.NewItemPlaceholder && 1029mentor.GetValue(FrameworkElement.DataContextProperty) == CollectionView.NewItemPlaceholder)
src\Framework\System\Windows\Data\BindingListCollectionView.cs (19)
103return (item == NewItemPlaceholder) ? (NewItemPlaceholderPosition != NewItemPlaceholderPosition.None) 466NewItemPlaceholder, 473NewItemPlaceholder, 486NewItemPlaceholder, 496NewItemPlaceholder, 510NewItemPlaceholder, 518NewItemPlaceholder, 542_group.RemoveSpecialItem(index, NewItemPlaceholder, false /*loading*/); 547_group.InsertSpecialItem(index, NewItemPlaceholder, false /*loading*/); 918if (item == CollectionView.NewItemPlaceholder) 976if (item == NewItemPlaceholder) 1395if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 1717if (item == NewItemPlaceholder) 1784return NewItemPlaceholder; 1798return NewItemPlaceholder; 1812if (item == NewItemPlaceholder) 1868if (proposedCurrentItem == NewItemPlaceholder) 2288_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 2315_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);
src\Framework\System\Windows\Data\CollectionView.cs (3)
527if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 1586if (item != null && item != NewItemPlaceholder) 1722return (_position == Position.OnPlaceholder) ? CollectionView.NewItemPlaceholder
src\Framework\System\Windows\Data\ListCollectionView.cs (22)
153if (newPosition < InternalCount && (newItem = InternalItemAt(newPosition)) != NewItemPlaceholder) 219if (proposedCurrentItem != NewItemPlaceholder) 581NewItemPlaceholder, 588NewItemPlaceholder, 601NewItemPlaceholder, 611NewItemPlaceholder, 625NewItemPlaceholder, 633NewItemPlaceholder, 657_group.RemoveSpecialItem(index, NewItemPlaceholder, false /*loading*/); 662_group.InsertSpecialItem(index, NewItemPlaceholder, false /*loading*/); 1098if (item == CollectionView.NewItemPlaceholder) 1175if (item == NewItemPlaceholder) 1927bool isSpecialItem = (newItem == NewItemPlaceholder || 2030if (NewItemPlaceholder != newItem) 2048if (NewItemPlaceholder != newItem) 2188if (item == NewItemPlaceholder) 2253return NewItemPlaceholder; 2270return NewItemPlaceholder; 2289if (item == NewItemPlaceholder) 2680if (item == NewItemPlaceholder) 2990_group.InsertSpecialItem(0, NewItemPlaceholder, true /*loading*/); 3017_group.InsertSpecialItem(_group.Items.Count, NewItemPlaceholder, true /*loading*/);
System.Activities.Core.Presentation (1)
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
640if (e.Row.Item != CollectionView.NewItemPlaceholder)
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\ContextMenuUtilities.cs (1)
89if (dataGrid.SelectedItems.Count == 1 && dataGrid.SelectedItems[0] == CollectionView.NewItemPlaceholder)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (3)
213if (items[index] == CollectionView.NewItemPlaceholder) 452if (e.Row.Item == CollectionView.NewItemPlaceholder) 1023if (dataGrid.SelectedItems[0] == CollectionView.NewItemPlaceholder)