21 references to ItemCount
PresentationFramework (21)
MS\Internal\Data\CollectionViewGroupInternal.cs (7)
131if (ItemCount > 0 && (GroupBy == null || GroupBy.GroupNames.Count == 0)) 142else if (subgroup.ItemCount > 0) 260leaves += subgroup.ItemCount; // item not in this subgroup 310result += (subgroup == null) ? 1 : subgroup.ItemCount; 328if (index < subgroup.ItemCount) 334index -= subgroup.ItemCount; 484delta += (subgroup == null) ? 1 : subgroup.ItemCount;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (3)
375if (position < group.ItemCount) 381sizeOfGroup = group.ItemCount; 391position -= group.ItemCount;
System\Windows\Controls\DataGrid.cs (1)
5602indexOfGroupBoundary += cvg.ItemCount - 1;
System\Windows\Controls\ItemContainerGenerator.cs (5)
846count += (group == null) ? 1 : group.ItemCount; 870count += group.ItemCount; 906int size = (group == null) ? 1 : group.ItemCount; 2041group.ItemCount == 0; // group is empty 3105if (group.ItemCount > 0)
System\Windows\Controls\VirtualizingStackPanel.cs (2)
1636if (index >= cvg.ItemCount) 1638index -= cvg.ItemCount;
System\Windows\Data\BindingListCollectionView.cs (1)
1658return _group.ItemCount;
System\Windows\Data\CollectionViewGroup.cs (1)
143OnPropertyChanged(new PropertyChangedEventArgs(nameof(ItemCount)));
System\Windows\Data\ListCollectionView.cs (1)
2328return _group.ItemCount;