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