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)
583Debug.Assert(_newItemIndex != -2 && newItem == _newItem, "AddNew did not raise expected events"); 616Debug.Assert(_newItemIndex == -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew"); 673ican.EndNew(_newItemIndex); 688NotifyCollectionChangedEventArgs args = ProcessCommitNew(_newItemIndex, _newItemIndex + delta); 720ican.CancelNew(_newItemIndex); 1515if (_newItemIndex == -2) 1779if (index <= _newItemIndex+1) 1921if (IsAddingNew && index == _newItemIndex) 1935if (index <= _newItemIndex) 1947if (index < _newItemIndex) 1976if (IsAddingNew && args.OldIndex == _newItemIndex) 1990if (args.OldIndex < _newItemIndex && _newItemIndex < args.NewIndex) 1994else if (args.NewIndex <= _newItemIndex && _newItemIndex < args.OldIndex) 2039if (_newItemIndex < 0)