21 references to ItemCount
PresentationFramework (21)
MS\Internal\Data\CollectionViewGroupInternal.cs (7)
130if (ItemCount > 0 && (GroupBy == null || GroupBy.GroupNames.Count == 0)) 141else if (subgroup.ItemCount > 0) 259leaves += subgroup.ItemCount; // item not in this subgroup 309result += (subgroup == null) ? 1 : subgroup.ItemCount; 327if (index < subgroup.ItemCount) 333index -= subgroup.ItemCount; 483delta += (subgroup == null) ? 1 : subgroup.ItemCount;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (3)
374if (position < group.ItemCount) 380sizeOfGroup = group.ItemCount; 390position -= group.ItemCount;
System\Windows\Controls\DataGrid.cs (1)
5601indexOfGroupBoundary += cvg.ItemCount - 1;
System\Windows\Controls\ItemContainerGenerator.cs (5)
845count += (group == null) ? 1 : group.ItemCount; 869count += group.ItemCount; 905int size = (group == null) ? 1 : group.ItemCount; 2040group.ItemCount == 0; // group is empty 3102if (group.ItemCount > 0)
System\Windows\Controls\VirtualizingStackPanel.cs (2)
1635if (index >= cvg.ItemCount) 1637index -= cvg.ItemCount;
System\Windows\Data\BindingListCollectionView.cs (1)
1657return _group.ItemCount;
System\Windows\Data\CollectionViewGroup.cs (1)
142OnPropertyChanged(new PropertyChangedEventArgs(nameof(ItemCount)));
System\Windows\Data\ListCollectionView.cs (1)
2327return _group.ItemCount;