1 write to _newItem
PresentationFramework (1)
System\Windows\Data\BindingListCollectionView.cs (1)
853_newItem = item;
24 references to _newItem
PresentationFramework (24)
System\Windows\Data\BindingListCollectionView.cs (24)
583Debug.Assert(_newItemIndex != -2 && newItem == _newItem, "AddNew did not raise expected events"); 616Debug.Assert(_newItemIndex == -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew"); 659if (_newItem == NoNewItem) 675else if ((ieo = _newItem as IEditableObject) != null) 685if (_newItem != NoNewItem) 706if (_newItem == NoNewItem) 722else if ((ieo = _newItem as IEditableObject) != null) 732if (_newItem != NoNewItem) 742object newItem = _newItem; 837get { return (_newItem != NoNewItem); } 846get { return IsAddingNew ? _newItem : null; } 851if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 969if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1719else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1778return _newItem; 1788return _newItem; 1813return new PlaceholderAwareEnumerator(this, CollectionProxy.GetEnumerator(), NewItemPlaceholderPosition, _newItem); 1923Debug.Assert(_newItem == InternalList[index], "unexpected item while committing AddNew"); 1981item = _newItem; 2038_newItemIndex = InternalList.IndexOf(_newItem); 2279_group.InsertSpecialItem(1, _newItem, true /*loading*/); 2291if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item)) 2299_group.InsertSpecialItem(_group.Items.Count, _newItem, true /*loading*/); 2344if (IsAddingNew && item == _newItem)