2 writes to _factory
PresentationFramework (2)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (2)
1339
_factory
= factory;
1489
_factory
= null;
20 references to _factory
PresentationFramework (20)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (20)
1342
_factory
.MapChanged += new MapChangedHandler(OnMapChanged);
1344
_factory
.MoveToPosition(position, direction, allowStartAtRealizedItem, ref _cachedState);
1345
_done = (
_factory
.ItemsInternal.Count == 0);
1347
_factory
.SetStatus(GeneratorStatus.GeneratingContainers);
1385
IList items =
_factory
.ItemsInternal;
1389
if (_cachedState.Block ==
_factory
._itemMap)
1416
bool isNewItemPlaceHolderWhenGrouping = (
_factory
._generatesGroupItems && group == null);
1418
if (
_factory
._recyclableContainers.Count > 0 && !
_factory
.Host.IsItemItsOwnContainer(item) && !isNewItemPlaceHolderWhenGrouping)
1420
container =
_factory
._recyclableContainers.Dequeue();
1425
if (group == null || !
_factory
.IsGrouping)
1428
container =
_factory
.Host.GetContainerForItem(item);
1433
container =
_factory
.ContainerForGroup(group);
1442
_factory
.Realize(uBlock, _cachedState.Offset, item, container);
1445
_factory
.SetAlternationIndex(_cachedState.Block, _cachedState.Offset, _direction);
1480
if (
_factory
!= null)
1482
_factory
.MapChanged -= new MapChangedHandler(OnMapChanged);
1484
if (!
_factory
._isGeneratingBatches)
1486
_factory
.SetStatus(GeneratorStatus.ContainersGenerated);
1488
_factory
._generator = null;