3 writes to _cachedState
PresentationFramework (3)
System\Windows\Controls\ItemContainerGenerator.cs (3)
1330
_factory.MoveToPosition(position, direction, allowStartAtRealizedItem, ref
_cachedState
);
1446
_cachedState.Block.MoveForward(ref
_cachedState
, true);
1450
_cachedState.Block.MoveBackward(ref
_cachedState
, true);
39 references to _cachedState
PresentationFramework (39)
System\Windows\Controls\ItemContainerGenerator.cs (39)
1370
UnrealizedItemBlock uBlock =
_cachedState
.Block as UnrealizedItemBlock;
1372
int itemIndex =
_cachedState
.ItemIndex;
1375
if (
_cachedState
.Block == _factory._itemMap)
1428
_factory.Realize(uBlock,
_cachedState
.Offset, item, container);
1431
_factory.SetAlternationIndex(
_cachedState
.Block,
_cachedState
.Offset, _direction);
1438
RealizedItemBlock rib = (RealizedItemBlock)
_cachedState
.Block;
1439
container = rib.ContainerAt(
_cachedState
.Offset);
1443
_cachedState
.ItemIndex = itemIndex;
1446
_cachedState
.Block.MoveForward(ref _cachedState, true);
1450
_cachedState
.Block.MoveBackward(ref _cachedState, true);
1517
if (block ==
_cachedState
.Block && offset <=
_cachedState
.Offset &&
1518
_cachedState
.Offset < offset + count)
1520
_cachedState
.Block = newBlock;
1521
_cachedState
.Offset += newOffset - offset;
1522
_cachedState
.Count += deltaCount;
1529
if (offset <
_cachedState
.Count ||
1530
(offset ==
_cachedState
.Count && newBlock != null && newBlock !=
_cachedState
.Block))
1532
_cachedState
.Count += count;
1533
_cachedState
.ItemIndex += count;
1536
else if (offset <
_cachedState
.Count +
_cachedState
.Offset)
1538
_cachedState
.Offset += count;
1539
_cachedState
.ItemIndex += count;
1542
else if (offset ==
_cachedState
.Count +
_cachedState
.Offset)
1547
_cachedState
.Offset += count;
1548
_cachedState
.ItemIndex += count;
1550
else if (
_cachedState
.Offset ==
_cachedState
.Block.ItemCount)
1553
_cachedState
.Block =
_cachedState
.Block.Next;
1554
_cachedState
.Offset = 0;
1561
_cachedState
.Block = newBlock;
1562
_cachedState
.Offset +=
_cachedState
.Count;
1563
_cachedState
.Count = 0;