1 write to _newItem
PresentationFramework (1)
src\Framework\System\Windows\Data\ListCollectionView.cs (1)
1045
_newItem
= item;
24 references to _newItem
PresentationFramework (24)
src\Framework\System\Windows\Data\ListCollectionView.cs (24)
783
Debug.Assert(_newItemIndex != -2 && System.Windows.Controls.ItemsControl.EqualsEx(newItem,
_newItem
), "AddNew did not raise expected events");
808
Debug.Assert(_newItemIndex == -2 &&
_newItem
== NoNewItem, "unexpected call to BeginAddNew");
849
if (
_newItem
== NoNewItem)
965
if (
_newItem
== NoNewItem)
978
if (
_newItem
!= NoNewItem)
980
int index = AdjustBefore(NotifyCollectionChangedAction.Remove,
_newItem
, _newItemIndex);
998
object newItem =
_newItem
;
1029
get { return (
_newItem
!= NoNewItem); }
1038
get { return IsAddingNew ?
_newItem
: null; }
1043
if (!System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
1180
if (System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
1742
_newItemIndex = SourceList.IndexOf(
_newItem
);
1928
(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(
_newItem
, newItem)));
2202
else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
2247
return
_newItem
;
2259
return
_newItem
;
2274
return
_newItem
;
2302
return new PlaceholderAwareEnumerator(this, InternalList.GetEnumerator(), NewItemPlaceholderPosition,
_newItem
);
2686
System.Windows.Controls.ItemsControl.EqualsEx(item,
_newItem
))
2766
if (!IsAddingNew || item !=
_newItem
)
2993
_group.InsertSpecialItem(1,
_newItem
, true /*loading*/);
3005
if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(
_newItem
, item))
3013
_group.InsertSpecialItem(_group.Items.Count,
_newItem
, true /*loading*/);
3059
if (IsAddingNew && item ==
_newItem
)