1 write to _newItem
PresentationFramework (1)
System\Windows\Data\ListCollectionView.cs (1)
1037
_newItem
= item;
24 references to _newItem
PresentationFramework (24)
System\Windows\Data\ListCollectionView.cs (24)
775
Debug.Assert(_newItemIndex != -2 && System.Windows.Controls.ItemsControl.EqualsEx(newItem,
_newItem
), "AddNew did not raise expected events");
800
Debug.Assert(_newItemIndex == -2 &&
_newItem
== NoNewItem, "unexpected call to BeginAddNew");
841
if (
_newItem
== NoNewItem)
957
if (
_newItem
== NoNewItem)
970
if (
_newItem
!= NoNewItem)
972
int index = AdjustBefore(NotifyCollectionChangedAction.Remove,
_newItem
, _newItemIndex);
990
object newItem =
_newItem
;
1021
get { return (
_newItem
!= NoNewItem); }
1030
get { return IsAddingNew ?
_newItem
: null; }
1035
if (!System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
1172
if (System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
1733
_newItemIndex = SourceList.IndexOf(
_newItem
);
1919
(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(
_newItem
, newItem)));
2191
else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
2236
return
_newItem
;
2248
return
_newItem
;
2263
return
_newItem
;
2291
return new PlaceholderAwareEnumerator(this, InternalList.GetEnumerator(), NewItemPlaceholderPosition,
_newItem
);
2673
System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
2753
if (!IsAddingNew || item !=
_newItem
)
2980
_group.InsertSpecialItem(1,
_newItem
, true /*loading*/);
2992
if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(
_newItem
, item))
3000
_group.InsertSpecialItem(_group.Items.Count,
_newItem
, true /*loading*/);
3046
if (IsAddingNew && item ==
_newItem
)