8 writes to _newItemIndex
PresentationFramework (8)
System\Windows\Data\BindingListCollectionView.cs (8)
577_newItemIndex = -2; // this is a signal that the next ItemAdded event comes from AddNew 613_newItemIndex = index; 625-- _newItemIndex; 1921++ _newItemIndex; 1933-- _newItemIndex; 1976-- _newItemIndex; 1980++ _newItemIndex; 2022_newItemIndex = InternalList.IndexOf(_newItem);
17 references to _newItemIndex
PresentationFramework (17)
System\Windows\Data\BindingListCollectionView.cs (17)
582Debug.Assert(_newItemIndex != -2 && newItem == _newItem, "AddNew did not raise expected events"); 609Debug.Assert(_newItemIndex == -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew"); 666ican.EndNew(_newItemIndex); 681NotifyCollectionChangedEventArgs args = ProcessCommitNew(_newItemIndex, _newItemIndex + delta); 713ican.CancelNew(_newItemIndex); 1499if (_newItemIndex == -2) 1763if (index <= _newItemIndex+1) 1905if (IsAddingNew && index == _newItemIndex) 1919if (index <= _newItemIndex) 1931if (index < _newItemIndex) 1960if (IsAddingNew && args.OldIndex == _newItemIndex) 1974if (args.OldIndex < _newItemIndex && _newItemIndex < args.NewIndex) 1978else if (args.NewIndex <= _newItemIndex && _newItemIndex < args.OldIndex) 2023if (_newItemIndex < 0)