2 writes to _itemContainerGenerator
PresentationFramework (2)
src\Framework\System\Windows\Controls\Panel.cs (2)
592
_itemContainerGenerator
= itemsOwnerGenerator.GetItemContainerGeneratorForPanel(this);
607
_itemContainerGenerator
= null;
26 references to _itemContainerGenerator
PresentationFramework (26)
src\Framework\System\Windows\Controls\Panel.cs (26)
412
return
_itemContainerGenerator
;
536
if (
_itemContainerGenerator
== null)
542
return (
_itemContainerGenerator
!= null);
546
if (
_itemContainerGenerator
!= null)
568
return IsItemsHost &&
_itemContainerGenerator
!= null;
575
return panel.IsItemsHost && panel.
_itemContainerGenerator
== null;
580
Debug.Assert(
_itemContainerGenerator
== null, "Attempted to connect to a generator when Panel._itemContainerGenerator is non-null.");
593
if (
_itemContainerGenerator
!= null)
595
_itemContainerGenerator
.ItemsChanged += new ItemsChangedEventHandler(OnItemsChanged);
596
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
603
Debug.Assert(
_itemContainerGenerator
!= null, "Attempted to disconnect from a generator when Panel._itemContainerGenerator is null.");
605
_itemContainerGenerator
.ItemsChanged -= new ItemsChangedEventHandler(OnItemsChanged);
606
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
626
if (
_itemContainerGenerator
== null)
641
if (
_itemContainerGenerator
!= null)
643
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
665
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
684
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an ItemsChanged from a generator.");
723
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Add action from a generator.");
725
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
738
_itemContainerGenerator
.Verify();
753
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Replace action from a generator.");
755
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
771
_itemContainerGenerator
.Verify();
782
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Move action from a generator.");
784
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;