8 writes to _newItemIndex
PresentationFramework (8)
System\Windows\Data\BindingListCollectionView.cs (8)
578
_newItemIndex
= -2; // this is a signal that the next ItemAdded event comes from AddNew
620
_newItemIndex
= index;
632
--
_newItemIndex
;
1937
++
_newItemIndex
;
1949
--
_newItemIndex
;
1992
--
_newItemIndex
;
1996
++
_newItemIndex
;
2038
_newItemIndex
= InternalList.IndexOf(_newItem);
17 references to _newItemIndex
PresentationFramework (17)
System\Windows\Data\BindingListCollectionView.cs (17)
583
Debug.Assert(
_newItemIndex
!= -2 && newItem == _newItem, "AddNew did not raise expected events");
616
Debug.Assert(
_newItemIndex
== -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew");
673
ican.EndNew(
_newItemIndex
);
688
NotifyCollectionChangedEventArgs args = ProcessCommitNew(
_newItemIndex
,
_newItemIndex
+ delta);
720
ican.CancelNew(
_newItemIndex
);
1515
if (
_newItemIndex
== -2)
1779
if (index <=
_newItemIndex
+1)
1921
if (IsAddingNew && index ==
_newItemIndex
)
1935
if (index <=
_newItemIndex
)
1947
if (index <
_newItemIndex
)
1976
if (IsAddingNew && args.OldIndex ==
_newItemIndex
)
1990
if (args.OldIndex <
_newItemIndex
&&
_newItemIndex
< args.NewIndex)
1994
else if (args.NewIndex <=
_newItemIndex
&&
_newItemIndex
< args.OldIndex)
2039
if (
_newItemIndex
< 0)