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)
1384UnrealizedItemBlock uBlock = _cachedState.Block as UnrealizedItemBlock; 1386int itemIndex = _cachedState.ItemIndex; 1389if (_cachedState.Block == _factory._itemMap) 1442_factory.Realize(uBlock, _cachedState.Offset, item, container); 1445_factory.SetAlternationIndex(_cachedState.Block, _cachedState.Offset, _direction); 1452RealizedItemBlock rib = (RealizedItemBlock)_cachedState.Block; 1453container = rib.ContainerAt(_cachedState.Offset); 1457_cachedState.ItemIndex = itemIndex; 1460_cachedState.Block.MoveForward(ref _cachedState, true); 1464_cachedState.Block.MoveBackward(ref _cachedState, true); 1531if (block == _cachedState.Block && offset <= _cachedState.Offset && 1532_cachedState.Offset < offset + count) 1534_cachedState.Block = newBlock; 1535_cachedState.Offset += newOffset - offset; 1536_cachedState.Count += deltaCount; 1543if (offset < _cachedState.Count || 1544(offset == _cachedState.Count && newBlock != null && newBlock != _cachedState.Block)) 1546_cachedState.Count += count; 1547_cachedState.ItemIndex += count; 1550else if (offset < _cachedState.Count + _cachedState.Offset) 1552_cachedState.Offset += count; 1553_cachedState.ItemIndex += count; 1556else if (offset == _cachedState.Count + _cachedState.Offset) 1561_cachedState.Offset += count; 1562_cachedState.ItemIndex += count; 1564else 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;