Base:
property
Count
System.Windows.Data.CollectionView.Count
Implemented interface member:
property
Count
System.Collections.ICollection.Count
85 references to Count
PresentationFramework (75)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
144return this.OwningDataGrid.Items.Count; 150if (row >= 0 && row < this.OwningDataGrid.Items.Count &&
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (5)
45_oldItemsCount = _listview.Items.Count; 106if (_oldItemsCount != _listview.Items.Count) 108peer.RaisePropertyChangedEvent(GridPatternIdentifiers.RowCountProperty, _oldItemsCount, _listview.Items.Count); 110_oldItemsCount = _listview.Items.Count; 194get { return _listview.Items.Count; }
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
327size = itemCollection.Count;
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (5)
138else if (items.Count > 0) 264if (items != null && items.Count > 0) 287if (startIndex == 0 || startIndex == items.Count) 293for (int i = startIndex; i < items.Count; i++) 305for (int i = startIndex; i < items.Count; i++)
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (3)
158if (items.Count > 0) 160children = new List<AutomationPeer>(items.Count); 161for (int i = 0; i < items.Count; i++)
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
97int itemsCount = (owner as ItemsControl).Items.Count;
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
78if (items.Count > 0) 80children = new List<AutomationPeer>(items.Count); 81for (int i = 0; i < items.Count; i++)
src\Framework\System\Windows\Controls\ComboBox.cs (3)
1545int count = Items.Count; 1562SelectItemHelper(0, +1, Items.Count); 1567SelectItemHelper(Items.Count - 1, -1, -1);
src\Framework\System\Windows\Controls\DataGrid.cs (19)
1807if (rowIndex < (Items.Count - 1)) 2655indexToSelect = Math.Min(Items.Count - numSelected - 1, indexToSelect); 2736index = Items.Count - 2; 2745if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 3828int itemCount = Items.Count; 3836if (Items.Count > 0) 3847int itemsCount = Items.Count; 4364int numItems = Items.Count; 4397int numItems = Items.Count; 5661(e.Key == Key.Down && currentRowIndex == Items.Count - 1)) 5793nextRowIndex = Items.Count - 1; 5819nextRowIndex = Math.Max(0, Items.Count - 1); 5824if (nextRowIndex >= Items.Count) 5998int numItems = Items.Count; 6076if ((_columns.Count > 0) && (Items.Count > 0)) 6104ItemInfo info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.Count - 1) : CurrentInfo; 6149targetIndex = Math.Max(0, Math.Min(targetIndex, Items.Count - 1)); 6431for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--) 6480for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--)
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (2)
345itemCount = HasItems ? Items.Count : 0; 356itemCount = HasItems ? Items.Count : 0;
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
2609int count = Items.Count; 3938int itemsCount = HasItems ? Items.Count : 0;
src\Framework\System\Windows\Controls\Menu.cs (1)
378for (int i = 0; i < Items.Count; i++)
src\Framework\System\Windows\Controls\MenuItem.cs (2)
628for (int i = 0; i < menuItem.Items.Count; i++) 2424int count = parent.Items.Count;
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
654dataGrid.CanUserResizeRows && dataGrid.Items.Count > 1 &&
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
704int itemsCount = menu.Items.Count;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (6)
372if ((value is int) && (int) value >= s.Items.Count) 424if ( (selectedIndex > -1 && selectedIndex < s.Items.Count && s.Items[selectedIndex] == value) 1249for (int i = 0; i < Items.Count; i++) 1741if ((selectedIndex > Items.Count - 1) 2040for (int i=0; unknownCount > 0 && i<Items.Count; ++i) 2501for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.Count; ++index)
src\Framework\System\Windows\Controls\TabControl.cs (6)
91for (int i = 0; i < tabItemCollection.Count; i++) 403if (startIndex > Items.Count) 443startIndex = Items.Count; 464for (int i = 0; i < Items.Count; i++) 467if (index >= Items.Count) 470index = Items.Count - 1;
src\Framework\System\Windows\Controls\TextSearch.cs (1)
403int count = itemCollection.Count;
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
1039for (int i = 0, count = item.Items.Count; i < count; i++)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (9)
160int numItems = items.Count; 986int numItems = _owner.Items.Count; 1015int numItems = _owner.Items.Count; 1071int numItems = _owner.Items.Count; 1159int numItems = _owner.Items.Count; 1203int numItems = _owner.Items.Count; 1241RemoveRegion(0, columnIndex, _owner.Items.Count, 1, ref removedRegions); 1262int numItems = _owner.Items.Count; 1618(rowIndex < owner.Items.Count) && (columnIndex < owner.Columns.Count))
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
12202"Items:", ic.Items.Count,
System.Activities.Presentation (10)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (2)
127if (editors == null || editors.Items.Count == 0) 144int childCount = properties.Items.Count;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\SubPropertyEditorAutomationPeer.cs (1)
107int childCount = properties.Items.Count;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
106return this.Items.Count;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (2)
208int numItems = items.Count; 1163&& nextSelectedIndex < dataGrid.Items.Count - 1)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
466int insertIndex = this.ContextMenu.Items.Count; 567for (int i = index + 1; i < this.ContextMenu.Items.Count && !visible; i++)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
938if (null != breadcrumbItems && breadcrumbItems.Items.Count > 0 && Keyboard.Modifiers == ModifierKeys.None && (e.Key == Key.Left || e.Key == Key.Right)) 943UIElement last = (UIElement)breadcrumbItems.ItemContainerGenerator.ContainerFromIndex(breadcrumbItems.Items.Count - 1);