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)
1370UnrealizedItemBlock uBlock = _cachedState.Block as UnrealizedItemBlock; 1372int itemIndex = _cachedState.ItemIndex; 1375if (_cachedState.Block == _factory._itemMap) 1428_factory.Realize(uBlock, _cachedState.Offset, item, container); 1431_factory.SetAlternationIndex(_cachedState.Block, _cachedState.Offset, _direction); 1438RealizedItemBlock rib = (RealizedItemBlock)_cachedState.Block; 1439container = rib.ContainerAt(_cachedState.Offset); 1443_cachedState.ItemIndex = itemIndex; 1446_cachedState.Block.MoveForward(ref _cachedState, true); 1450_cachedState.Block.MoveBackward(ref _cachedState, true); 1517if (block == _cachedState.Block && offset <= _cachedState.Offset && 1518_cachedState.Offset < offset + count) 1520_cachedState.Block = newBlock; 1521_cachedState.Offset += newOffset - offset; 1522_cachedState.Count += deltaCount; 1529if (offset < _cachedState.Count || 1530(offset == _cachedState.Count && newBlock != null && newBlock != _cachedState.Block)) 1532_cachedState.Count += count; 1533_cachedState.ItemIndex += count; 1536else if (offset < _cachedState.Count + _cachedState.Offset) 1538_cachedState.Offset += count; 1539_cachedState.ItemIndex += count; 1542else if (offset == _cachedState.Count + _cachedState.Offset) 1547_cachedState.Offset += count; 1548_cachedState.ItemIndex += count; 1550else 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;