2 writes to _itemContainerGenerator
PresentationFramework (2)
System\Windows\Controls\Panel.cs (2)
588
_itemContainerGenerator
= itemsOwnerGenerator.GetItemContainerGeneratorForPanel(this);
603
_itemContainerGenerator
= null;
26 references to _itemContainerGenerator
PresentationFramework (26)
System\Windows\Controls\Panel.cs (26)
408
return
_itemContainerGenerator
;
532
if (
_itemContainerGenerator
== null)
538
return (
_itemContainerGenerator
!= null);
542
if (
_itemContainerGenerator
!= null)
564
return IsItemsHost &&
_itemContainerGenerator
!= null;
571
return panel.IsItemsHost && panel.
_itemContainerGenerator
== null;
576
Debug.Assert(
_itemContainerGenerator
== null, "Attempted to connect to a generator when Panel._itemContainerGenerator is non-null.");
589
if (
_itemContainerGenerator
!= null)
591
_itemContainerGenerator
.ItemsChanged += new ItemsChangedEventHandler(OnItemsChanged);
592
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
599
Debug.Assert(
_itemContainerGenerator
!= null, "Attempted to disconnect from a generator when Panel._itemContainerGenerator is null.");
601
_itemContainerGenerator
.ItemsChanged -= new ItemsChangedEventHandler(OnItemsChanged);
602
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
622
if (
_itemContainerGenerator
== null)
637
if (
_itemContainerGenerator
!= null)
639
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
661
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
680
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an ItemsChanged from a generator.");
719
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Add action from a generator.");
721
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
734
_itemContainerGenerator
.Verify();
749
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Replace action from a generator.");
751
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
767
_itemContainerGenerator
.Verify();
778
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Move action from a generator.");
780
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;