1 write to _newItem
PresentationFramework (1)
System\Windows\Data\ListCollectionView.cs (1)
1031_newItem = item;
24 references to _newItem
PresentationFramework (24)
System\Windows\Data\ListCollectionView.cs (24)
769Debug.Assert(_newItemIndex != -2 && System.Windows.Controls.ItemsControl.EqualsEx(newItem, _newItem), "AddNew did not raise expected events"); 794Debug.Assert(_newItemIndex == -2 && _newItem == NoNewItem, "unexpected call to BeginAddNew"); 835if (_newItem == NoNewItem) 951if (_newItem == NoNewItem) 964if (_newItem != NoNewItem) 966int index = AdjustBefore(NotifyCollectionChangedAction.Remove, _newItem, _newItemIndex); 984object newItem = _newItem; 1015get { return (_newItem != NoNewItem); } 1024get { return IsAddingNew ? _newItem : null; } 1029if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1166if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1727_newItemIndex = SourceList.IndexOf(_newItem); 1913(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(_newItem, newItem))); 2185else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2230return _newItem; 2242return _newItem; 2257return _newItem; 2285return new PlaceholderAwareEnumerator(this, InternalList.GetEnumerator(), NewItemPlaceholderPosition, _newItem); 2667System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2747if (!IsAddingNew || item != _newItem) 2974_group.InsertSpecialItem(1, _newItem, true /*loading*/); 2986if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item)) 2994_group.InsertSpecialItem(_group.Items.Count, _newItem, true /*loading*/); 3040if (IsAddingNew && item == _newItem)