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)
588Debug.Assert(_newItemIndex != -2 && newItem == _newItem, "AddNew did not raise expected events"); 621Debug.Assert(_newItemIndex == -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew"); 678ican.EndNew(_newItemIndex); 693NotifyCollectionChangedEventArgs args = ProcessCommitNew(_newItemIndex, _newItemIndex + delta); 725ican.CancelNew(_newItemIndex); 1520if (_newItemIndex == -2) 1784if (index <= _newItemIndex+1) 1926if (IsAddingNew && index == _newItemIndex) 1940if (index <= _newItemIndex) 1952if (index < _newItemIndex) 1981if (IsAddingNew && args.OldIndex == _newItemIndex) 1995if (args.OldIndex < _newItemIndex && _newItemIndex < args.NewIndex) 1999else if (args.NewIndex <= _newItemIndex && _newItemIndex < args.OldIndex) 2044if (_newItemIndex < 0)