8 writes to _newItemIndex
PresentationFramework (8)
System\Windows\Data\BindingListCollectionView.cs (8)
583
_newItemIndex
= -2; // this is a signal that the next ItemAdded event comes from AddNew
625
_newItemIndex
= index;
637
--
_newItemIndex
;
1942
++
_newItemIndex
;
1954
--
_newItemIndex
;
1997
--
_newItemIndex
;
2001
++
_newItemIndex
;
2043
_newItemIndex
= InternalList.IndexOf(_newItem);
17 references to _newItemIndex
PresentationFramework (17)
System\Windows\Data\BindingListCollectionView.cs (17)
588
Debug.Assert(
_newItemIndex
!= -2 && newItem == _newItem, "AddNew did not raise expected events");
621
Debug.Assert(
_newItemIndex
== -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew");
678
ican.EndNew(
_newItemIndex
);
693
NotifyCollectionChangedEventArgs args = ProcessCommitNew(
_newItemIndex
,
_newItemIndex
+ delta);
725
ican.CancelNew(
_newItemIndex
);
1520
if (
_newItemIndex
== -2)
1784
if (index <=
_newItemIndex
+1)
1926
if (IsAddingNew && index ==
_newItemIndex
)
1940
if (index <=
_newItemIndex
)
1952
if (index <
_newItemIndex
)
1981
if (IsAddingNew && args.OldIndex ==
_newItemIndex
)
1995
if (args.OldIndex <
_newItemIndex
&&
_newItemIndex
< args.NewIndex)
1999
else if (args.NewIndex <=
_newItemIndex
&&
_newItemIndex
< args.OldIndex)
2044
if (
_newItemIndex
< 0)