2 writes to _factory
PresentationFramework (2)
System\Windows\Controls\ItemContainerGenerator.cs (2)
1331
_factory
= factory;
1481
_factory
= null;
20 references to _factory
PresentationFramework (20)
System\Windows\Controls\ItemContainerGenerator.cs (20)
1334
_factory
.MapChanged += new MapChangedHandler(OnMapChanged);
1336
_factory
.MoveToPosition(position, direction, allowStartAtRealizedItem, ref _cachedState);
1337
_done = (
_factory
.ItemsInternal.Count == 0);
1339
_factory
.SetStatus(GeneratorStatus.GeneratingContainers);
1377
IList items =
_factory
.ItemsInternal;
1381
if (_cachedState.Block ==
_factory
._itemMap)
1408
bool isNewItemPlaceHolderWhenGrouping = (
_factory
._generatesGroupItems && group == null);
1410
if (
_factory
._recyclableContainers.Count > 0 && !
_factory
.Host.IsItemItsOwnContainer(item) && !isNewItemPlaceHolderWhenGrouping)
1412
container =
_factory
._recyclableContainers.Dequeue();
1417
if (group == null || !
_factory
.IsGrouping)
1420
container =
_factory
.Host.GetContainerForItem(item);
1425
container =
_factory
.ContainerForGroup(group);
1434
_factory
.Realize(uBlock, _cachedState.Offset, item, container);
1437
_factory
.SetAlternationIndex(_cachedState.Block, _cachedState.Offset, _direction);
1472
if (
_factory
!= null)
1474
_factory
.MapChanged -= new MapChangedHandler(OnMapChanged);
1476
if (!
_factory
._isGeneratingBatches)
1478
_factory
.SetStatus(GeneratorStatus.ContainersGenerated);
1480
_factory
._generator = null;