3 writes to _cachedState
PresentationFramework (3)
System\Windows\Controls\ItemContainerGenerator.cs (3)
1336
_factory.MoveToPosition(position, direction, allowStartAtRealizedItem, ref
_cachedState
);
1452
_cachedState.Block.MoveForward(ref
_cachedState
, true);
1456
_cachedState.Block.MoveBackward(ref
_cachedState
, true);
39 references to _cachedState
PresentationFramework (39)
System\Windows\Controls\ItemContainerGenerator.cs (39)
1376
UnrealizedItemBlock uBlock =
_cachedState
.Block as UnrealizedItemBlock;
1378
int itemIndex =
_cachedState
.ItemIndex;
1381
if (
_cachedState
.Block == _factory._itemMap)
1434
_factory.Realize(uBlock,
_cachedState
.Offset, item, container);
1437
_factory.SetAlternationIndex(
_cachedState
.Block,
_cachedState
.Offset, _direction);
1444
RealizedItemBlock rib = (RealizedItemBlock)
_cachedState
.Block;
1445
container = rib.ContainerAt(
_cachedState
.Offset);
1449
_cachedState
.ItemIndex = itemIndex;
1452
_cachedState
.Block.MoveForward(ref _cachedState, true);
1456
_cachedState
.Block.MoveBackward(ref _cachedState, true);
1523
if (block ==
_cachedState
.Block && offset <=
_cachedState
.Offset &&
1524
_cachedState
.Offset < offset + count)
1526
_cachedState
.Block = newBlock;
1527
_cachedState
.Offset += newOffset - offset;
1528
_cachedState
.Count += deltaCount;
1535
if (offset <
_cachedState
.Count ||
1536
(offset ==
_cachedState
.Count && newBlock != null && newBlock !=
_cachedState
.Block))
1538
_cachedState
.Count += count;
1539
_cachedState
.ItemIndex += count;
1542
else if (offset <
_cachedState
.Count +
_cachedState
.Offset)
1544
_cachedState
.Offset += count;
1545
_cachedState
.ItemIndex += count;
1548
else if (offset ==
_cachedState
.Count +
_cachedState
.Offset)
1553
_cachedState
.Offset += count;
1554
_cachedState
.ItemIndex += count;
1556
else if (
_cachedState
.Offset ==
_cachedState
.Block.ItemCount)
1559
_cachedState
.Block =
_cachedState
.Block.Next;
1560
_cachedState
.Offset = 0;
1567
_cachedState
.Block = newBlock;
1568
_cachedState
.Offset +=
_cachedState
.Count;
1569
_cachedState
.Count = 0;