11 writes to ItemCount
PresentationFramework (11)
System\Windows\Controls\ItemContainerGenerator.cs (11)
473uib.ItemCount = ItemsInternal.Count; 1821block.ItemCount -= count; 1822newBlock.ItemCount += count; 2485++ uib.ItemCount; 2492++ uib.ItemCount; 2499uib.ItemCount = 1; 2552--block.ItemCount; 2670--block.ItemCount; 2702++ uib.ItemCount; 2709++ uib.ItemCount; 2716uib.ItemCount = 1;
63 references to ItemCount
PresentationFramework (63)
System\Windows\Controls\ItemContainerGenerator.cs (63)
356bool edgeR = (offsetR == blockR.ItemCount-1); 371offsetT = blockT.ItemCount; 372deltaCount = -blockT.ItemCount; 393int itemCount = block.ItemCount; 399if (block.ItemCount == 0) 405int remaining = block.ItemCount - 1 - offsetR; 554itemIndex += block.ItemCount; 706index += startBlock.ItemCount; 710index -= startBlock.ItemCount; 716if (startOffset >= rib.ItemCount) 735int endOffset = startBlock.ItemCount; 780index += block.ItemCount; 792endOffset = block.ItemCount; 840count += block.ItemCount; 925if (index < block.ItemCount) 943index -= block.ItemCount; 1012accumulatedCount += block.ItemCount; 1029for (int offset=0; offset<rib.ItemCount; ++offset) 1045blockIndex += block.ItemCount; 1556else if (_cachedState.Offset == _cachedState.Block.ItemCount) 1652itemCount += block.ItemCount; 1654itemIndex += block.ItemCount; 1725prevR.ItemCount < ItemBlock.BlockSize) 1728newOffset = prevR.ItemCount; 1729MoveItems(block, offset, 1, newBlock, newOffset, -prevR.ItemCount); 1730MoveItems(block, 1, block.ItemCount, block, 0, +1); 1735else if (offset == block.ItemCount - 1 && 1737nextR.ItemCount < ItemBlock.BlockSize) 1741MoveItems(newBlock, 0, newBlock.ItemCount, newBlock, 1, -1); 1757MoveItems(block, 1, block.ItemCount, block, 0, +1); 1761else if (offset == block.ItemCount - 1) 1773MoveItems(block, offset+1, block.ItemCount-offset-1, newUBlock, 0, offset+1); 1786if (block != null && block != _itemMap && block.ItemCount == 0) 1793MoveItems(block.Next, 0, block.Next.ItemCount, block.Prev, block.Prev.ItemCount, -block.Prev.ItemCount-1); 1815else if (ribSrc != null && ribSrc.ItemCount > count) 2149if (offsetFromBlockStart >= block.ItemCount) 2153offsetFromBlockStart -= block.ItemCount; 2232ItemsInternal[correctIndex + block.ItemCount - deletionOffset]); 2241(ItemsInternal.Count == correctIndex + block.ItemCount - deletionOffset); 2254correctIndex += block.ItemCount; 2468while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2470offsetFromBlockStart -= block.ItemCount; 2472unrealizedItemsSkipped = (block.ContainerCount > 0) ? 0 : unrealizedItemsSkipped + block.ItemCount; 2506MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2551MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2669MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2680while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2682offsetFromBlockStart -= block.ItemCount; 2690position.Offset += block.ItemCount; 2722MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2894if (++state.Offset >= ItemCount) 2898state.Count += ItemCount; 2910state.Offset = state.Block.ItemCount - 1; 2911state.Count -= state.Block.ItemCount; 2921if (count < ItemCount - state.Offset) 2927count = ItemCount - state.Offset; 2930state.Count += ItemCount; 2951state.Offset = state.Block.ItemCount - 1; 2952state.Count -= state.Block.ItemCount; 2984public override int ContainerCount { get { return ItemCount; } } 3056for (int k=0; k < ItemCount; ++k)