11 writes to ItemCount
PresentationFramework (11)
System\Windows\Controls\ItemContainerGenerator.cs (11)
466uib.ItemCount = ItemsInternal.Count; 1811block.ItemCount -= count; 1812newBlock.ItemCount += count; 2473++ uib.ItemCount; 2480++ uib.ItemCount; 2488ItemCount = 1 2542--block.ItemCount; 2660--block.ItemCount; 2692++ uib.ItemCount; 2699++ uib.ItemCount; 2707ItemCount = 1
63 references to ItemCount
PresentationFramework (63)
System\Windows\Controls\ItemContainerGenerator.cs (63)
349bool edgeR = (offsetR == blockR.ItemCount-1); 364offsetT = blockT.ItemCount; 365deltaCount = -blockT.ItemCount; 386int itemCount = block.ItemCount; 392if (block.ItemCount == 0) 398int remaining = block.ItemCount - 1 - offsetR; 547itemIndex += block.ItemCount; 699index += startBlock.ItemCount; 703index -= startBlock.ItemCount; 709if (startOffset >= rib.ItemCount) 728int endOffset = startBlock.ItemCount; 773index += block.ItemCount; 785endOffset = block.ItemCount; 833count += block.ItemCount; 918if (index < block.ItemCount) 936index -= block.ItemCount; 1005accumulatedCount += block.ItemCount; 1022for (int offset=0; offset<rib.ItemCount; ++offset) 1038blockIndex += block.ItemCount; 1546else if (_cachedState.Offset == _cachedState.Block.ItemCount) 1642itemCount += block.ItemCount; 1644itemIndex += block.ItemCount; 1715prevR.ItemCount < ItemBlock.BlockSize) 1718newOffset = prevR.ItemCount; 1719MoveItems(block, offset, 1, newBlock, newOffset, -prevR.ItemCount); 1720MoveItems(block, 1, block.ItemCount, block, 0, +1); 1725else if (offset == block.ItemCount - 1 && 1727nextR.ItemCount < ItemBlock.BlockSize) 1731MoveItems(newBlock, 0, newBlock.ItemCount, newBlock, 1, -1); 1747MoveItems(block, 1, block.ItemCount, block, 0, +1); 1751else if (offset == block.ItemCount - 1) 1763MoveItems(block, offset+1, block.ItemCount-offset-1, newUBlock, 0, offset+1); 1776if (block != null && block != _itemMap && block.ItemCount == 0) 1783MoveItems(block.Next, 0, block.Next.ItemCount, block.Prev, block.Prev.ItemCount, -block.Prev.ItemCount-1); 1805else if (ribSrc != null && ribSrc.ItemCount > count) 2137if (offsetFromBlockStart >= block.ItemCount) 2141offsetFromBlockStart -= block.ItemCount; 2220ItemsInternal[correctIndex + block.ItemCount - deletionOffset]); 2229(ItemsInternal.Count == correctIndex + block.ItemCount - deletionOffset); 2242correctIndex += block.ItemCount; 2456while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2458offsetFromBlockStart -= block.ItemCount; 2460unrealizedItemsSkipped = (block.ContainerCount > 0) ? 0 : unrealizedItemsSkipped + block.ItemCount; 2496MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2541MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2659MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2670while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2672offsetFromBlockStart -= block.ItemCount; 2680position.Offset += block.ItemCount; 2714MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2886if (++state.Offset >= ItemCount) 2890state.Count += ItemCount; 2902state.Offset = state.Block.ItemCount - 1; 2903state.Count -= state.Block.ItemCount; 2913if (count < ItemCount - state.Offset) 2919count = ItemCount - state.Offset; 2922state.Count += ItemCount; 2943state.Offset = state.Block.ItemCount - 1; 2944state.Count -= state.Block.ItemCount; 2976public override int ContainerCount { get { return ItemCount; } } 3048for (int k=0; k < ItemCount; ++k)