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)
595Debug.Assert(_newItemIndex != -2 && newItem == _newItem, "AddNew did not raise expected events"); 628Debug.Assert(_newItemIndex == -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew"); 685ican.EndNew(_newItemIndex); 700NotifyCollectionChangedEventArgs args = ProcessCommitNew(_newItemIndex, _newItemIndex + delta); 732ican.CancelNew(_newItemIndex); 1527if (_newItemIndex == -2) 1791if (index <= _newItemIndex+1) 1933if (IsAddingNew && index == _newItemIndex) 1947if (index <= _newItemIndex) 1959if (index < _newItemIndex) 1988if (IsAddingNew && args.OldIndex == _newItemIndex) 2002if (args.OldIndex < _newItemIndex && _newItemIndex < args.NewIndex) 2006else if (args.NewIndex <= _newItemIndex && _newItemIndex < args.OldIndex) 2051if (_newItemIndex < 0)