1 write to _newItem
PresentationFramework (1)
System\Windows\Data\ListCollectionView.cs (1)
1031
_newItem
= item;
24 references to _newItem
PresentationFramework (24)
System\Windows\Data\ListCollectionView.cs (24)
769
Debug.Assert(_newItemIndex != -2 && System.Windows.Controls.ItemsControl.EqualsEx(newItem,
_newItem
), "AddNew did not raise expected events");
794
Debug.Assert(_newItemIndex == -2 &&
_newItem
== NoNewItem, "unexpected call to BeginAddNew");
835
if (
_newItem
== NoNewItem)
951
if (
_newItem
== NoNewItem)
964
if (
_newItem
!= NoNewItem)
966
int index = AdjustBefore(NotifyCollectionChangedAction.Remove,
_newItem
, _newItemIndex);
984
object newItem =
_newItem
;
1015
get { return (
_newItem
!= NoNewItem); }
1024
get { return IsAddingNew ?
_newItem
: null; }
1029
if (!System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
1166
if (System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
1727
_newItemIndex = SourceList.IndexOf(
_newItem
);
1913
(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(
_newItem
, newItem)));
2185
else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
2230
return
_newItem
;
2242
return
_newItem
;
2257
return
_newItem
;
2285
return new PlaceholderAwareEnumerator(this, InternalList.GetEnumerator(), NewItemPlaceholderPosition,
_newItem
);
2667
System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
2747
if (!IsAddingNew || item !=
_newItem
)
2974
_group.InsertSpecialItem(1,
_newItem
, true /*loading*/);
2986
if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(
_newItem
, item))
2994
_group.InsertSpecialItem(_group.Items.Count,
_newItem
, true /*loading*/);
3040
if (IsAddingNew && item ==
_newItem
)