8 writes to _newItemIndex
PresentationFramework (8)
src\Framework\System\Windows\Data\BindingListCollectionView.cs (8)
590
_newItemIndex
= -2; // this is a signal that the next ItemAdded event comes from AddNew
632
_newItemIndex
= index;
644
--
_newItemIndex
;
1949
++
_newItemIndex
;
1961
--
_newItemIndex
;
2004
--
_newItemIndex
;
2008
++
_newItemIndex
;
2050
_newItemIndex
= InternalList.IndexOf(_newItem);
17 references to _newItemIndex
PresentationFramework (17)
src\Framework\System\Windows\Data\BindingListCollectionView.cs (17)
595
Debug.Assert(
_newItemIndex
!= -2 && newItem == _newItem, "AddNew did not raise expected events");
628
Debug.Assert(
_newItemIndex
== -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew");
685
ican.EndNew(
_newItemIndex
);
700
NotifyCollectionChangedEventArgs args = ProcessCommitNew(
_newItemIndex
,
_newItemIndex
+ delta);
732
ican.CancelNew(
_newItemIndex
);
1527
if (
_newItemIndex
== -2)
1791
if (index <=
_newItemIndex
+1)
1933
if (IsAddingNew && index ==
_newItemIndex
)
1947
if (index <=
_newItemIndex
)
1959
if (index <
_newItemIndex
)
1988
if (IsAddingNew && args.OldIndex ==
_newItemIndex
)
2002
if (args.OldIndex <
_newItemIndex
&&
_newItemIndex
< args.NewIndex)
2006
else if (args.NewIndex <=
_newItemIndex
&&
_newItemIndex
< args.OldIndex)
2051
if (
_newItemIndex
< 0)