3 writes to _cachedState
PresentationFramework (3)
System\Windows\Controls\ItemContainerGenerator.cs (3)
1327_factory.MoveToPosition(position, direction, allowStartAtRealizedItem, ref _cachedState); 1443_cachedState.Block.MoveForward(ref _cachedState, true); 1447_cachedState.Block.MoveBackward(ref _cachedState, true);
39 references to _cachedState
PresentationFramework (39)
System\Windows\Controls\ItemContainerGenerator.cs (39)
1367UnrealizedItemBlock uBlock = _cachedState.Block as UnrealizedItemBlock; 1369int itemIndex = _cachedState.ItemIndex; 1372if (_cachedState.Block == _factory._itemMap) 1425_factory.Realize(uBlock, _cachedState.Offset, item, container); 1428_factory.SetAlternationIndex(_cachedState.Block, _cachedState.Offset, _direction); 1435RealizedItemBlock rib = (RealizedItemBlock)_cachedState.Block; 1436container = rib.ContainerAt(_cachedState.Offset); 1440_cachedState.ItemIndex = itemIndex; 1443_cachedState.Block.MoveForward(ref _cachedState, true); 1447_cachedState.Block.MoveBackward(ref _cachedState, true); 1514if (block == _cachedState.Block && offset <= _cachedState.Offset && 1515_cachedState.Offset < offset + count) 1517_cachedState.Block = newBlock; 1518_cachedState.Offset += newOffset - offset; 1519_cachedState.Count += deltaCount; 1526if (offset < _cachedState.Count || 1527(offset == _cachedState.Count && newBlock != null && newBlock != _cachedState.Block)) 1529_cachedState.Count += count; 1530_cachedState.ItemIndex += count; 1533else if (offset < _cachedState.Count + _cachedState.Offset) 1535_cachedState.Offset += count; 1536_cachedState.ItemIndex += count; 1539else if (offset == _cachedState.Count + _cachedState.Offset) 1544_cachedState.Offset += count; 1545_cachedState.ItemIndex += count; 1547else if (_cachedState.Offset == _cachedState.Block.ItemCount) 1550_cachedState.Block = _cachedState.Block.Next; 1551_cachedState.Offset = 0; 1558_cachedState.Block = newBlock; 1559_cachedState.Offset += _cachedState.Count; 1560_cachedState.Count = 0;