2 writes to _itemContainerGenerator
PresentationFramework (2)
System\Windows\Controls\Panel.cs (2)
581_itemContainerGenerator = itemsOwnerGenerator.GetItemContainerGeneratorForPanel(this); 596_itemContainerGenerator = null;
26 references to _itemContainerGenerator
PresentationFramework (26)
System\Windows\Controls\Panel.cs (26)
401return _itemContainerGenerator; 525if (_itemContainerGenerator == null) 531return (_itemContainerGenerator != null); 535if (_itemContainerGenerator != null) 557return IsItemsHost && _itemContainerGenerator != null; 564return panel.IsItemsHost && panel._itemContainerGenerator == null; 569Debug.Assert(_itemContainerGenerator == null, "Attempted to connect to a generator when Panel._itemContainerGenerator is non-null."); 582if (_itemContainerGenerator != null) 584_itemContainerGenerator.ItemsChanged += new ItemsChangedEventHandler(OnItemsChanged); 585((IItemContainerGenerator)_itemContainerGenerator).RemoveAll(); 592Debug.Assert(_itemContainerGenerator != null, "Attempted to disconnect from a generator when Panel._itemContainerGenerator is null."); 594_itemContainerGenerator.ItemsChanged -= new ItemsChangedEventHandler(OnItemsChanged); 595((IItemContainerGenerator)_itemContainerGenerator).RemoveAll(); 615if (_itemContainerGenerator == null) 630if (_itemContainerGenerator != null) 632((IItemContainerGenerator)_itemContainerGenerator).RemoveAll(); 654IItemContainerGenerator generator = (IItemContainerGenerator)_itemContainerGenerator; 673Debug.Assert(_itemContainerGenerator != null, "Encountered a null _itemContainerGenerator while receiving an ItemsChanged from a generator."); 712Debug.Assert(_itemContainerGenerator != null, "Encountered a null _itemContainerGenerator while receiving an Add action from a generator."); 714IItemContainerGenerator generator = (IItemContainerGenerator)_itemContainerGenerator; 727_itemContainerGenerator.Verify(); 742Debug.Assert(_itemContainerGenerator != null, "Encountered a null _itemContainerGenerator while receiving an Replace action from a generator."); 744IItemContainerGenerator generator = (IItemContainerGenerator)_itemContainerGenerator; 760_itemContainerGenerator.Verify(); 771Debug.Assert(_itemContainerGenerator != null, "Encountered a null _itemContainerGenerator while receiving an Move action from a generator."); 773IItemContainerGenerator generator = (IItemContainerGenerator)_itemContainerGenerator;