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)
1376UnrealizedItemBlock uBlock = _cachedState.Block as UnrealizedItemBlock; 1378int itemIndex = _cachedState.ItemIndex; 1381if (_cachedState.Block == _factory._itemMap) 1434_factory.Realize(uBlock, _cachedState.Offset, item, container); 1437_factory.SetAlternationIndex(_cachedState.Block, _cachedState.Offset, _direction); 1444RealizedItemBlock rib = (RealizedItemBlock)_cachedState.Block; 1445container = rib.ContainerAt(_cachedState.Offset); 1449_cachedState.ItemIndex = itemIndex; 1452_cachedState.Block.MoveForward(ref _cachedState, true); 1456_cachedState.Block.MoveBackward(ref _cachedState, true); 1523if (block == _cachedState.Block && offset <= _cachedState.Offset && 1524_cachedState.Offset < offset + count) 1526_cachedState.Block = newBlock; 1527_cachedState.Offset += newOffset - offset; 1528_cachedState.Count += deltaCount; 1535if (offset < _cachedState.Count || 1536(offset == _cachedState.Count && newBlock != null && newBlock != _cachedState.Block)) 1538_cachedState.Count += count; 1539_cachedState.ItemIndex += count; 1542else if (offset < _cachedState.Count + _cachedState.Offset) 1544_cachedState.Offset += count; 1545_cachedState.ItemIndex += count; 1548else if (offset == _cachedState.Count + _cachedState.Offset) 1553_cachedState.Offset += count; 1554_cachedState.ItemIndex += count; 1556else 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;