11 writes to ItemCount
PresentationFramework (11)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (11)
476uib.ItemCount = ItemsInternal.Count; 1829block.ItemCount -= count; 1830newBlock.ItemCount += count; 2493++ uib.ItemCount; 2500++ uib.ItemCount; 2507uib.ItemCount = 1; 2560--block.ItemCount; 2678--block.ItemCount; 2710++ uib.ItemCount; 2717++ uib.ItemCount; 2724uib.ItemCount = 1;
63 references to ItemCount
PresentationFramework (63)
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (63)
358bool edgeR = (offsetR == blockR.ItemCount-1); 373offsetT = blockT.ItemCount; 374deltaCount = -blockT.ItemCount; 395int itemCount = block.ItemCount; 401if (block.ItemCount == 0) 407int remaining = block.ItemCount - 1 - offsetR; 557itemIndex += block.ItemCount; 714index += startBlock.ItemCount; 718index -= startBlock.ItemCount; 724if (startOffset >= rib.ItemCount) 743int endOffset = startBlock.ItemCount; 788index += block.ItemCount; 800endOffset = block.ItemCount; 848count += block.ItemCount; 933if (index < block.ItemCount) 951index -= block.ItemCount; 1020accumulatedCount += block.ItemCount; 1037for (int offset=0; offset<rib.ItemCount; ++offset) 1053blockIndex += block.ItemCount; 1564else if (_cachedState.Offset == _cachedState.Block.ItemCount) 1660itemCount += block.ItemCount; 1662itemIndex += block.ItemCount; 1733prevR.ItemCount < ItemBlock.BlockSize) 1736newOffset = prevR.ItemCount; 1737MoveItems(block, offset, 1, newBlock, newOffset, -prevR.ItemCount); 1738MoveItems(block, 1, block.ItemCount, block, 0, +1); 1743else if (offset == block.ItemCount - 1 && 1745nextR.ItemCount < ItemBlock.BlockSize) 1749MoveItems(newBlock, 0, newBlock.ItemCount, newBlock, 1, -1); 1765MoveItems(block, 1, block.ItemCount, block, 0, +1); 1769else if (offset == block.ItemCount - 1) 1781MoveItems(block, offset+1, block.ItemCount-offset-1, newUBlock, 0, offset+1); 1794if (block != null && block != _itemMap && block.ItemCount == 0) 1801MoveItems(block.Next, 0, block.Next.ItemCount, block.Prev, block.Prev.ItemCount, -block.Prev.ItemCount-1); 1823else if (ribSrc != null && ribSrc.ItemCount > count) 2157if (offsetFromBlockStart >= block.ItemCount) 2161offsetFromBlockStart -= block.ItemCount; 2240ItemsInternal[correctIndex + block.ItemCount - deletionOffset]); 2249(ItemsInternal.Count == correctIndex + block.ItemCount - deletionOffset); 2262correctIndex += block.ItemCount; 2476while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2478offsetFromBlockStart -= block.ItemCount; 2480unrealizedItemsSkipped = (block.ContainerCount > 0) ? 0 : unrealizedItemsSkipped + block.ItemCount; 2514MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2559MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2677MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2688while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2690offsetFromBlockStart -= block.ItemCount; 2698position.Offset += block.ItemCount; 2730MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2902if (++state.Offset >= ItemCount) 2906state.Count += ItemCount; 2918state.Offset = state.Block.ItemCount - 1; 2919state.Count -= state.Block.ItemCount; 2929if (count < ItemCount - state.Offset) 2935count = ItemCount - state.Offset; 2938state.Count += ItemCount; 2959state.Offset = state.Block.ItemCount - 1; 2960state.Count -= state.Block.ItemCount; 2992public override int ContainerCount { get { return ItemCount; } } 3064for (int k=0; k < ItemCount; ++k)