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