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)
401
return
_itemContainerGenerator
;
525
if (
_itemContainerGenerator
== null)
531
return (
_itemContainerGenerator
!= null);
535
if (
_itemContainerGenerator
!= null)
557
return IsItemsHost &&
_itemContainerGenerator
!= null;
564
return panel.IsItemsHost && panel.
_itemContainerGenerator
== null;
569
Debug.Assert(
_itemContainerGenerator
== null, "Attempted to connect to a generator when Panel._itemContainerGenerator is non-null.");
582
if (
_itemContainerGenerator
!= null)
584
_itemContainerGenerator
.ItemsChanged += new ItemsChangedEventHandler(OnItemsChanged);
585
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
592
Debug.Assert(
_itemContainerGenerator
!= null, "Attempted to disconnect from a generator when Panel._itemContainerGenerator is null.");
594
_itemContainerGenerator
.ItemsChanged -= new ItemsChangedEventHandler(OnItemsChanged);
595
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
615
if (
_itemContainerGenerator
== null)
630
if (
_itemContainerGenerator
!= null)
632
((IItemContainerGenerator)
_itemContainerGenerator
).RemoveAll();
654
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
673
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an ItemsChanged from a generator.");
712
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Add action from a generator.");
714
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
727
_itemContainerGenerator
.Verify();
742
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Replace action from a generator.");
744
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;
760
_itemContainerGenerator
.Verify();
771
Debug.Assert(
_itemContainerGenerator
!= null, "Encountered a null _itemContainerGenerator while receiving an Move action from a generator.");
773
IItemContainerGenerator generator = (IItemContainerGenerator)
_itemContainerGenerator
;