2 writes to _factory
PresentationFramework (2)
System\Windows\Controls\ItemContainerGenerator.cs (2)
1325
_factory
= factory;
1475
_factory
= null;
20 references to _factory
PresentationFramework (20)
System\Windows\Controls\ItemContainerGenerator.cs (20)
1328
_factory
.MapChanged += new MapChangedHandler(OnMapChanged);
1330
_factory
.MoveToPosition(position, direction, allowStartAtRealizedItem, ref _cachedState);
1331
_done = (
_factory
.ItemsInternal.Count == 0);
1333
_factory
.SetStatus(GeneratorStatus.GeneratingContainers);
1371
IList items =
_factory
.ItemsInternal;
1375
if (_cachedState.Block ==
_factory
._itemMap)
1402
bool isNewItemPlaceHolderWhenGrouping = (
_factory
._generatesGroupItems && group == null);
1404
if (
_factory
._recyclableContainers.Count > 0 && !
_factory
.Host.IsItemItsOwnContainer(item) && !isNewItemPlaceHolderWhenGrouping)
1406
container =
_factory
._recyclableContainers.Dequeue();
1411
if (group == null || !
_factory
.IsGrouping)
1414
container =
_factory
.Host.GetContainerForItem(item);
1419
container =
_factory
.ContainerForGroup(group);
1428
_factory
.Realize(uBlock, _cachedState.Offset, item, container);
1431
_factory
.SetAlternationIndex(_cachedState.Block, _cachedState.Offset, _direction);
1466
if (
_factory
!= null)
1468
_factory
.MapChanged -= new MapChangedHandler(OnMapChanged);
1470
if (!
_factory
._isGeneratingBatches)
1472
_factory
.SetStatus(GeneratorStatus.ContainersGenerated);
1474
_factory
._generator = null;