3 writes to _cachedState
PresentationFramework (3)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (3)
1344
_factory.MoveToPosition(position, direction, allowStartAtRealizedItem, ref
_cachedState
);
1460
_cachedState.Block.MoveForward(ref
_cachedState
, true);
1464
_cachedState.Block.MoveBackward(ref
_cachedState
, true);
39 references to _cachedState
PresentationFramework (39)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (39)
1384
UnrealizedItemBlock uBlock =
_cachedState
.Block as UnrealizedItemBlock;
1386
int itemIndex =
_cachedState
.ItemIndex;
1389
if (
_cachedState
.Block == _factory._itemMap)
1442
_factory.Realize(uBlock,
_cachedState
.Offset, item, container);
1445
_factory.SetAlternationIndex(
_cachedState
.Block,
_cachedState
.Offset, _direction);
1452
RealizedItemBlock rib = (RealizedItemBlock)
_cachedState
.Block;
1453
container = rib.ContainerAt(
_cachedState
.Offset);
1457
_cachedState
.ItemIndex = itemIndex;
1460
_cachedState
.Block.MoveForward(ref _cachedState, true);
1464
_cachedState
.Block.MoveBackward(ref _cachedState, true);
1531
if (block ==
_cachedState
.Block && offset <=
_cachedState
.Offset &&
1532
_cachedState
.Offset < offset + count)
1534
_cachedState
.Block = newBlock;
1535
_cachedState
.Offset += newOffset - offset;
1536
_cachedState
.Count += deltaCount;
1543
if (offset <
_cachedState
.Count ||
1544
(offset ==
_cachedState
.Count && newBlock != null && newBlock !=
_cachedState
.Block))
1546
_cachedState
.Count += count;
1547
_cachedState
.ItemIndex += count;
1550
else if (offset <
_cachedState
.Count +
_cachedState
.Offset)
1552
_cachedState
.Offset += count;
1553
_cachedState
.ItemIndex += count;
1556
else if (offset ==
_cachedState
.Count +
_cachedState
.Offset)
1561
_cachedState
.Offset += count;
1562
_cachedState
.ItemIndex += count;
1564
else if (
_cachedState
.Offset ==
_cachedState
.Block.ItemCount)
1567
_cachedState
.Block =
_cachedState
.Block.Next;
1568
_cachedState
.Offset = 0;
1575
_cachedState
.Block = newBlock;
1576
_cachedState
.Offset +=
_cachedState
.Count;
1577
_cachedState
.Count = 0;