11 writes to ItemCount
PresentationFramework (11)
System\Windows\Controls\ItemContainerGenerator.cs (11)
467uib.ItemCount = ItemsInternal.Count; 1815block.ItemCount -= count; 1816newBlock.ItemCount += count; 2479++ uib.ItemCount; 2486++ uib.ItemCount; 2493uib.ItemCount = 1; 2546--block.ItemCount; 2664--block.ItemCount; 2696++ uib.ItemCount; 2703++ uib.ItemCount; 2710uib.ItemCount = 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; 1550else if (_cachedState.Offset == _cachedState.Block.ItemCount) 1646itemCount += block.ItemCount; 1648itemIndex += block.ItemCount; 1719prevR.ItemCount < ItemBlock.BlockSize) 1722newOffset = prevR.ItemCount; 1723MoveItems(block, offset, 1, newBlock, newOffset, -prevR.ItemCount); 1724MoveItems(block, 1, block.ItemCount, block, 0, +1); 1729else if (offset == block.ItemCount - 1 && 1731nextR.ItemCount < ItemBlock.BlockSize) 1735MoveItems(newBlock, 0, newBlock.ItemCount, newBlock, 1, -1); 1751MoveItems(block, 1, block.ItemCount, block, 0, +1); 1755else if (offset == block.ItemCount - 1) 1767MoveItems(block, offset+1, block.ItemCount-offset-1, newUBlock, 0, offset+1); 1780if (block != null && block != _itemMap && block.ItemCount == 0) 1787MoveItems(block.Next, 0, block.Next.ItemCount, block.Prev, block.Prev.ItemCount, -block.Prev.ItemCount-1); 1809else if (ribSrc != null && ribSrc.ItemCount > count) 2143if (offsetFromBlockStart >= block.ItemCount) 2147offsetFromBlockStart -= block.ItemCount; 2226ItemsInternal[correctIndex + block.ItemCount - deletionOffset]); 2235(ItemsInternal.Count == correctIndex + block.ItemCount - deletionOffset); 2248correctIndex += block.ItemCount; 2462while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2464offsetFromBlockStart -= block.ItemCount; 2466unrealizedItemsSkipped = (block.ContainerCount > 0) ? 0 : unrealizedItemsSkipped + block.ItemCount; 2500MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2545MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2663MoveItems(block, offsetFromBlockStart + 1, block.ItemCount - offsetFromBlockStart - 1, block, offsetFromBlockStart, 0); 2674while (block != _itemMap && offsetFromBlockStart >= block.ItemCount) 2676offsetFromBlockStart -= block.ItemCount; 2684position.Offset += block.ItemCount; 2716MoveItems(rib, offsetFromBlockStart, rib.ItemCount - offsetFromBlockStart, newBlock, 0, offsetFromBlockStart); 2888if (++state.Offset >= ItemCount) 2892state.Count += ItemCount; 2904state.Offset = state.Block.ItemCount - 1; 2905state.Count -= state.Block.ItemCount; 2915if (count < ItemCount - state.Offset) 2921count = ItemCount - state.Offset; 2924state.Count += ItemCount; 2945state.Offset = state.Block.ItemCount - 1; 2946state.Count -= state.Block.ItemCount; 2978public override int ContainerCount { get { return ItemCount; } } 3050for (int k=0; k < ItemCount; ++k)