11 writes to ItemCount
PresentationFramework (11)
System\Windows\Controls\ItemContainerGenerator.cs (11)
467uib.ItemCount = ItemsInternal.Count; 1812block.ItemCount -= count; 1813newBlock.ItemCount += count; 2476++ uib.ItemCount; 2483++ uib.ItemCount; 2491ItemCount = 1 2545--block.ItemCount; 2663--block.ItemCount; 2695++ uib.ItemCount; 2702++ uib.ItemCount; 2710ItemCount = 1
63 references to ItemCount
PresentationFramework (63)
System\Windows\Controls\ItemContainerGenerator.cs (63)
350bool edgeR = (offsetR == blockR.ItemCount-1); 365offsetT = blockT.ItemCount; 366deltaCount = -blockT.ItemCount; 387int itemCount = block.ItemCount; 393if (block.ItemCount == 0) 399int remaining = block.ItemCount - 1 - offsetR; 548itemIndex += block.ItemCount; 700index += startBlock.ItemCount; 704index -= startBlock.ItemCount; 710if (startOffset >= rib.ItemCount) 729int endOffset = startBlock.ItemCount; 774index += block.ItemCount; 786endOffset = block.ItemCount; 834count += block.ItemCount; 919if (index < block.ItemCount) 937index -= block.ItemCount; 1006accumulatedCount += block.ItemCount; 1023for (int offset=0; offset<rib.ItemCount; ++offset) 1039blockIndex += block.ItemCount; 1547else if (_cachedState.Offset == _cachedState.Block.ItemCount) 1643itemCount += block.ItemCount; 1645itemIndex += block.ItemCount; 1716prevR.ItemCount < ItemBlock.BlockSize) 1719newOffset = prevR.ItemCount; 1720MoveItems(block, offset, 1, newBlock, newOffset, -prevR.ItemCount); 1721MoveItems(block, 1, block.ItemCount, block, 0, +1); 1726else if (offset == block.ItemCount - 1 && 1728nextR.ItemCount < ItemBlock.BlockSize) 1732MoveItems(newBlock, 0, newBlock.ItemCount, newBlock, 1, -1); 1748MoveItems(block, 1, block.ItemCount, block, 0, +1); 1752else if (offset == block.ItemCount - 1) 1764MoveItems(block, offset+1, block.ItemCount-offset-1, newUBlock, 0, offset+1); 1777if (block != null && block != _itemMap && block.ItemCount == 0) 1784MoveItems(block.Next, 0, block.Next.ItemCount, block.Prev, block.Prev.ItemCount, -block.Prev.ItemCount-1); 1806else if (ribSrc != null && ribSrc.ItemCount > count) 2140if (offsetFromBlockStart >= block.ItemCount) 2144offsetFromBlockStart -= block.ItemCount; 2223ItemsInternal[correctIndex + block.ItemCount - deletionOffset]); 2232(ItemsInternal.Count == correctIndex + block.ItemCount - deletionOffset); 2245correctIndex += block.ItemCount; 2459while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2461offsetFromBlockStart -= block.ItemCount; 2463unrealizedItemsSkipped = (block.ContainerCount > 0) ? 0 : unrealizedItemsSkipped + block.ItemCount; 2499MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2544MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2662MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2673while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2675offsetFromBlockStart -= block.ItemCount; 2683position.Offset += block.ItemCount; 2717MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2889if (++state.Offset >= ItemCount) 2893state.Count += ItemCount; 2905state.Offset = state.Block.ItemCount - 1; 2906state.Count -= state.Block.ItemCount; 2916if (count < ItemCount - state.Offset) 2922count = ItemCount - state.Offset; 2925state.Count += ItemCount; 2946state.Offset = state.Block.ItemCount - 1; 2947state.Count -= state.Block.ItemCount; 2979public override int ContainerCount { get { return ItemCount; } } 3051for (int k=0; k < ItemCount; ++k)