Base:
property
Count
System.Windows.Data.CollectionView.Count
Implemented interface member:
136 references to Count
Microsoft.VisualStudio.LanguageServices (1)
ChangeSignature\ChangeSignatureDialog.xaml.cs (1)
247if (oldSelectedIndex >= 0 && oldSelectedIndex < Members.Items.Count - 1)
PresentationFramework (76)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (2)
145return this.OwningDataGrid.Items.Count; 151if (row >= 0 && row < this.OwningDataGrid.Items.Count &&
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (5)
49_oldItemsCount = _listview.Items.Count; 110if (_oldItemsCount != _listview.Items.Count) 112peer.RaisePropertyChangedEvent(GridPatternIdentifiers.RowCountProperty, _oldItemsCount, _listview.Items.Count); 114_oldItemsCount = _listview.Items.Count; 198get { return _listview.Items.Count; }
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
364size = itemCollection.Count;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (5)
141else if (items.Count > 0) 267if (items != null && items.Count > 0) 290if (startIndex == 0 || startIndex == items.Count) 296for (int i = startIndex; i < items.Count; i++) 308for (int i = startIndex; i < items.Count; i++)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (3)
183if (items.Count > 0) 185children = new List<AutomationPeer>(items.Count); 186for (int i = 0; i < items.Count; i++)
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
100int itemsCount = (owner as ItemsControl).Items.Count;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (3)
81if (items.Count > 0) 83children = new List<AutomationPeer>(items.Count); 84for (int i = 0; i < items.Count; i++)
System\Windows\Controls\ComboBox.cs (3)
1543int count = Items.Count; 1560SelectItemHelper(0, +1, Items.Count); 1565SelectItemHelper(Items.Count - 1, -1, -1);
System\Windows\Controls\DataGrid.cs (19)
1803if (rowIndex < (Items.Count - 1)) 2650indexToSelect = Math.Min(Items.Count - numSelected - 1, indexToSelect); 2731index = Items.Count - 2; 2740if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 3823int itemCount = Items.Count; 3831if (Items.Count > 0) 3842int itemsCount = Items.Count; 4359int numItems = Items.Count; 4392int numItems = Items.Count; 5656(e.Key == Key.Down && currentRowIndex == Items.Count - 1)) 5788nextRowIndex = Items.Count - 1; 5814nextRowIndex = Math.Max(0, Items.Count - 1); 5819if (nextRowIndex >= Items.Count) 5993int numItems = Items.Count; 6071if ((_columns.Count > 0) && (Items.Count > 0)) 6099ItemInfo info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.Count - 1) : CurrentInfo; 6144targetIndex = Math.Max(0, Math.Min(targetIndex, Items.Count - 1)); 6426for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--) 6475for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--)
System\Windows\Controls\HeaderedItemsControl.cs (2)
349itemCount = HasItems ? Items.Count : 0; 360itemCount = HasItems ? Items.Count : 0;
System\Windows\Controls\ItemContainerGenerator.cs (1)
900object target = (Parent == null) && (0 <= index && index < Host.View.Count) ? Host.View[index] : null;
System\Windows\Controls\ItemsControl.cs (2)
2606int count = Items.Count; 4006int itemsCount = HasItems ? Items.Count : 0;
System\Windows\Controls\Menu.cs (1)
352for (int i = 0; i < Items.Count; i++)
System\Windows\Controls\MenuItem.cs (2)
633for (int i = 0; i < menuItem.Items.Count; i++) 2364int count = parent.Items.Count;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
653dataGrid.CanUserResizeRows && dataGrid.Items.Count > 1 &&
System\Windows\Controls\Primitives\MenuBase.cs (1)
693int itemsCount = menu.Items.Count;
System\Windows\Controls\Primitives\Selector.cs (6)
362if ((value is int) && (int) value >= s.Items.Count) 414if ( (selectedIndex > -1 && selectedIndex < s.Items.Count && s.Items[selectedIndex] == value) 1231for (int i = 0; i < Items.Count; i++) 1721if ((selectedIndex > Items.Count - 1) 1995for (int i=0; unknownCount > 0 && i<Items.Count; ++i) 2456for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.Count; ++index)
System\Windows\Controls\TabControl.cs (6)
90for (int i = 0; i < tabItemCollection.Count; i++) 402if (startIndex > Items.Count) 442startIndex = Items.Count; 463for (int i = 0; i < Items.Count; i++) 466if (index >= Items.Count) 469index = Items.Count - 1;
System\Windows\Controls\TextSearch.cs (1)
390int count = itemCollection.Count;
System\Windows\Controls\TreeViewItem.cs (1)
1039for (int i = 0, count = item.Items.Count; i < count; i++)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (9)
159int numItems = items.Count; 983int numItems = _owner.Items.Count; 1012int numItems = _owner.Items.Count; 1068int numItems = _owner.Items.Count; 1156int numItems = _owner.Items.Count; 1200int numItems = _owner.Items.Count; 1238RemoveRegion(0, columnIndex, _owner.Items.Count, 1, ref removedRegions); 1259int numItems = _owner.Items.Count; 1615(rowIndex < owner.Items.Count) && (columnIndex < owner.Columns.Count))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12363"Items:", ic.Items.Count,
System.Windows.Controls.Ribbon (59)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
724int groupHeaderCount = groupHeaderItemsControl.Items.Count;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
1504int itemCount = ribbon.Items.Count; 1541if (SelectedIndex < 0 && Items.Count > 0) 1565int itemCount = Items.Count; 1675int itemCount = Items.Count; 1992tab.Items.Count, 2043quickAccessToolBar.Items.Count,
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
1051handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView); 1072handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
460for (int i = 0; i < Ribbon.Items.Count; i++) 523int itemCount = ribbon.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
101return RibbonHelper.FindContainer(this, Items.Count - 1, -1, null, HasTabs) as RibbonContextualTabGroup; 258int count = this.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
88for (int i = 0; i < Items.Count; i++) 105int itemCount = controlGroup.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (9)
595for (int i = 0; i < Items.Count; i++) 976for (int i = 0; i < Items.Count; i++ ) 1169if (category != null && category.Items.Count > 0) 1439for (int index=0; index<category.Items.Count; index++) 2156for (int index = 0; index < category.Items.Count; index++) 2221for (int index = 0; index < category.Items.Count; index++) 2320for (int i = 0; i < this.Items.Count; i++) 2357for (int i = 0; i < gallery.Items.Count; i++) 2532for (int index = 0; index < gallery.Items.Count; index++)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (6)
505if (Items.Count > 3) 535else if (Items.Count == 3) 555else if (Items.Count == 2) 844if (Items.Count == 0) 861for (int i = 0; i < Items.Count; i++) 1219int itemCount = Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (19)
556FrameworkElement lastItem = FindContainer(itemsControl, itemsControl.Items.Count - 1, -1, bringIntoViewCallback, additionalCheck); 569int count = itemsControl.Items.Count; 593if (itemIndex < parent.Items.Count) 607if (startIndex == parent.Items.Count - 1) 610if (startIndex < parent.Items.Count - 1) 637startIndex = parent.Items.Count; 663RibbonGalleryCategory lastCategory = RibbonHelper.FindContainer(gallery, gallery.Items.Count - 1, -1, null, IsContainerVisible) as RibbonGalleryCategory; 775category = gallery.Items.Count > 0 ? gallery.ItemContainerGenerator.ContainerFromIndex(0) as RibbonGalleryCategory : null; 776galleryItem = category != null && category.Items.Count > 0 ? category.ItemContainerGenerator.ContainerFromIndex(0) as RibbonGalleryItem : null; 793endCatIndex = gallery.Items.Count; 814startItemIndex = galleryItem != null ? category.ItemContainerGenerator.IndexFromContainer(galleryItem) : category.Items.Count - 1; 837startColumnIndex = (galleryItem != null ? startItemIndex : category.Items.Count - 1) % columnCount; 844endItemIndex = category.Items.Count; 866int remainingItems = category.Items.Count; 906int remainingItems = category.Items.Count - itemIndex; 1934else if (menuItem.Items.Count == 0) 1945if (menuItem.Items.Count == 0) 2251for (int i = 0; i < originalItemsControl.Items.Count; i++) 2493int parentItemCount = parentItemsControl.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
862handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
585int itemCount = QuickAccessToolBar.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (5)
363_groupAutoResizeIndex = Items.Count - 1; 554_groupAutoResizeIndex = Items.Count - 1; 580_groupAutoResizeIndex = Items.Count - 1; 587if (numAttempts == Items.Count) 787int itemCount = Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
135ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
142int itemCount = _attachedTo.Items.Count; 386int count = itemCollection.Count;