3 writes to _cachedState
PresentationFramework (3)
System\Windows\Controls\ItemContainerGenerator.cs (3)
1326_factory.MoveToPosition(position, direction, allowStartAtRealizedItem, ref _cachedState); 1442_cachedState.Block.MoveForward(ref _cachedState, true); 1446_cachedState.Block.MoveBackward(ref _cachedState, true);
39 references to _cachedState
PresentationFramework (39)
System\Windows\Controls\ItemContainerGenerator.cs (39)
1366UnrealizedItemBlock uBlock = _cachedState.Block as UnrealizedItemBlock; 1368int itemIndex = _cachedState.ItemIndex; 1371if (_cachedState.Block == _factory._itemMap) 1424_factory.Realize(uBlock, _cachedState.Offset, item, container); 1427_factory.SetAlternationIndex(_cachedState.Block, _cachedState.Offset, _direction); 1434RealizedItemBlock rib = (RealizedItemBlock)_cachedState.Block; 1435container = rib.ContainerAt(_cachedState.Offset); 1439_cachedState.ItemIndex = itemIndex; 1442_cachedState.Block.MoveForward(ref _cachedState, true); 1446_cachedState.Block.MoveBackward(ref _cachedState, true); 1513if (block == _cachedState.Block && offset <= _cachedState.Offset && 1514_cachedState.Offset < offset + count) 1516_cachedState.Block = newBlock; 1517_cachedState.Offset += newOffset - offset; 1518_cachedState.Count += deltaCount; 1525if (offset < _cachedState.Count || 1526(offset == _cachedState.Count && newBlock != null && newBlock != _cachedState.Block)) 1528_cachedState.Count += count; 1529_cachedState.ItemIndex += count; 1532else if (offset < _cachedState.Count + _cachedState.Offset) 1534_cachedState.Offset += count; 1535_cachedState.ItemIndex += count; 1538else if (offset == _cachedState.Count + _cachedState.Offset) 1543_cachedState.Offset += count; 1544_cachedState.ItemIndex += count; 1546else if (_cachedState.Offset == _cachedState.Block.ItemCount) 1549_cachedState.Block = _cachedState.Block.Next; 1550_cachedState.Offset = 0; 1557_cachedState.Block = newBlock; 1558_cachedState.Offset += _cachedState.Count; 1559_cachedState.Count = 0;