349 references to Items
Microsoft.VisualStudio.LanguageServices (13)
ChangeSignature\ChangeSignatureDialog.xaml.cs (8)
107Members.Items.Refresh(); 130Members.Items.Refresh(); 140Members.Items.Refresh(); 151Members.Items.Refresh(); 235var potentialNewSelectedParameter = Members.Items[oldSelectedIndex - 1] as ChangeSignatureDialogViewModel.ParameterViewModel; 248if (oldSelectedIndex >= 0 && oldSelectedIndex < Members.Items.Count - 1) 264Members.SelectedIndex = Members.Items.IndexOf(Members.CurrentItem); 286Members.Items.Refresh();
PickMembers\PickMembersDialog.xaml.cs (3)
66Members.Items.Refresh(); 87Members.Items.Refresh(); 100Members.Items.Refresh();
ValueTracking\ValueTrackingTree.xaml.cs (2)
100return (TreeViewItemBase)ValueTrackingTreeView.Items[0]; 117return (TreeViewItemBase)ValueTrackingTreeView.Items[^1];
PresentationFramework (222)
MS\Internal\Documents\DocumentGridContextMenu.cs (2)
187this.Items.Add(new Separator()); 215this.Items.Add(menuItem);
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (4)
140return this.OwningDataGrid.Items.Count; 146if (row >= 0 && row < this.OwningDataGrid.Items.Count && 149object item = this.OwningDataGrid.Items[row]; 275foreach (object item in this.OwningDataGrid.Items)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
543return this.OwningDataGrid.Items.IndexOf(this.Item);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (3)
228IEditableCollectionView iecv = (IEditableCollectionView)this.OwningDataGrid.Items; 307if (this.OwningDataGrid.Items.Contains(item)) 369int rowIndex = dataGrid.Items.IndexOf(Item);
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (5)
37_oldItemsCount = _listview.Items.Count; 98if (_oldItemsCount != _listview.Items.Count) 100peer.RaisePropertyChangedEvent(GridPatternIdentifiers.RowCountProperty, _oldItemsCount, _listview.Items.Count); 102_oldItemsCount = _listview.Items.Count; 186get { return _listview.Items.Count; }
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
330ItemCollection itemCollection = itemsControl.Items; 345ItemCollection itemCollection = itemsControl.Items;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (3)
61ItemCollection items = owner.Items; 228ItemCollection items = owner.Items; 253items = owner.Items;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (3)
92foreach (var item in parent.Items) 124foreach (var item in parent.Items) 168ItemCollection items = owner.Items;
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
88int itemsCount = (owner as ItemsControl).Items.Count;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
39foreach (object obj in itemscontrol.Items)
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
63ItemCollection items = owner.Items;
System\Windows\Controls\ComboBox.cs (6)
1106index = Items.IndexOf(info.Item); 1518if (!Items.IsEmpty) 1533int count = Items.Count; 1550SelectItemHelper(0, +1, Items.Count); 1555SelectItemHelper(Items.Count - 1, -1, -1); 1570object item = Items[i];
System\Windows\Controls\DataGrid.cs (53)
90((INotifyCollectionChanged)Items).CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsCollectionChanged); 92((INotifyCollectionChanged)Items.SortDescriptions).CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsSortDescriptionsChanged); 93Items.GroupDescriptions.CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsGroupDescriptionsChanged); 1800if (rowIndex < (Items.Count - 1)) 2647indexToSelect = Math.Min(Items.Count - numSelected - 1, indexToSelect); 2699object itemToSelect = Items[indexToSelect]; 2728index = Items.Count - 2; 2729if (index >= 0 && ItemsControl.EqualsEx(newItem, Items[index])) 2737if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 2747info = ItemInfoFromIndex(Items.IndexOf(newItem)); 3574IEditableCollectionViewAddNewItem ani = (IEditableCollectionViewAddNewItem)Items; 3676newItemIndex = Items.IndexOf(currentAddItem); 3736get { return (IEditableCollectionView)Items; } 3820int itemCount = Items.Count; 3823SetCurrentItem(Items[itemCount - 1]); 3828if (Items.Count > 0) 3830SetCurrentItem(Items[0]); 3839int itemsCount = Items.Count; 4356int numItems = Items.Count; 4389int numItems = Items.Count; 4946IEnumerator enumerator = ((IEnumerable)Items).GetEnumerator(); 5058ItemCollection items = Items; 5121object item = Items[i]; 5653(e.Key == Key.Down && currentRowIndex == Items.Count - 1)) 5785nextRowIndex = Items.Count - 1; 5811nextRowIndex = Math.Max(0, Items.Count - 1); 5816if (nextRowIndex >= Items.Count) 5990int numItems = Items.Count; 5994index = Items.IndexOf(CurrentItem); 6068if ((_columns.Count > 0) && (Items.Count > 0)) 6096ItemInfo info = controlModifier ? ItemInfoFromIndex(homeKey ? 0 : Items.Count - 1) : CurrentInfo; 6141targetIndex = Math.Max(0, Math.Min(targetIndex, Items.Count - 1)); 6423for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--) 6472for (int i = (isGrouping ? Items.Count - 1 : itemsHost.Children.Count - 1); i >= 0; i--) 7090dataGrid.Items.CanSort == false) 7147if (Items.NeedsRefresh) 7151Items.Refresh(); 7155Items.SortDescriptions.Clear(); 7207using (Items.DeferRefresh()) 7213Items.SortDescriptions.Clear(); 7218for (int i = 0; i < Items.SortDescriptions.Count; i++) 7220if (string.Equals(Items.SortDescriptions[i].PropertyName, sortPropertyName, StringComparison.Ordinal) && 7233Items.SortDescriptions[descriptorIndex] = sortDescription; 7237Items.SortDescriptions.Add(sortDescription); 7253Items.SortDescriptions.Clear(); 7347Items.SortDescriptions.RemoveAt(GroupingSortDescriptionIndices[i] - i); 7388foreach (GroupDescription groupDescription in Items.GroupDescriptions) 7394Items.SortDescriptions.Insert(insertIndex, sortDescription); 7592Items.SortDescriptions.Clear(); 7800ReadOnlyCollection<ItemPropertyInfo> itemProperties = ((IItemProperties)Items).ItemProperties; 8308object row = Items[i]; 8370rowIndex = Items.IndexOf(args.Item);
System\Windows\Controls\DataGridCellsPanel.cs (2)
1080cellsPresenter.IsItemItsOwnContainerInternal(cellsPresenter.Items[columnIndex])) || 1082headersPresenter.IsItemItsOwnContainerInternal(headersPresenter.Items[columnIndex])))
System\Windows\Controls\HeaderedItemsControl.cs (2)
344itemCount = HasItems ? Items.Count : 0; 355itemCount = HasItems ? Items.Count : 0;
System\Windows\Controls\ItemsControl.cs (15)
195ic.Items.SetItemsSource(newValue, (object x)=>beb.GetSourceItem(x) ); 200ic.Items.SetItemsSource(newValue); 205ic.Items.ClearItemsSource(); 235get { return Items.ItemsSource; } 281return this.Items.LogicalChildren; 1260Items.Add(value); 1279Items.Add(text); 1297get { return Items; } 1458HasItems && Items.Contains(container); 2573elementIndex = Items.IndexOf(item); 2597int count = Items.Count; 2609return Items[startIndex]; 3585return (index >= 0) ? NewItemInfo(Items[index], ItemContainerGenerator.ContainerFromIndex(index), index) 3801info.Index = Items.IndexOf(info.Item); 3997int itemsCount = HasItems ? Items.Count : 0;
System\Windows\Controls\ListBox.cs (2)
827AnchorItemInternal = NewItemInfo(Items[0], null, 0); 876IEnumerator enumerator = ((IEnumerable)Items).GetEnumerator();
System\Windows\Controls\Menu.cs (2)
342for (int i = 0; i < Items.Count; i++) 346if (menuItem != null && !(Items[i] is Separator))
System\Windows\Controls\MenuItem.cs (2)
623for (int i = 0; i < menuItem.Items.Count; i++) 2354int count = parent.Items.Count;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
648dataGrid.CanUserResizeRows && dataGrid.Items.Count > 1 && 649!object.ReferenceEquals(parent.Item, dataGrid.Items[0]))
System\Windows\Controls\Primitives\MenuBase.cs (1)
684int itemsCount = menu.Items.Count;
System\Windows\Controls\Primitives\ScrollBar.cs (30)
828verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 829verticalContextMenu.Items.Add(new Separator()); 830verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Top), "Top", ScrollBar.ScrollToTopCommand)); 831verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Bottom), "Bottom", ScrollBar.ScrollToBottomCommand)); 832verticalContextMenu.Items.Add(new Separator()); 833verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageUp), "PageUp", ScrollBar.PageUpCommand)); 834verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageDown), "PageDown", ScrollBar.PageDownCommand)); 835verticalContextMenu.Items.Add(new Separator()); 836verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollUp), "ScrollUp", ScrollBar.LineUpCommand)); 837verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollDown), "ScrollDown", ScrollBar.LineDownCommand)); 848horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 849horizontalContextMenuLeftToRight.Items.Add(new Separator()); 850horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToLeftEndCommand)); 851horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToRightEndCommand)); 852horizontalContextMenuLeftToRight.Items.Add(new Separator()); 853horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageLeftCommand)); 854horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageRightCommand)); 855horizontalContextMenuLeftToRight.Items.Add(new Separator()); 856horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineLeftCommand)); 857horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineRightCommand)); 868horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 869horizontalContextMenuRightToLeft.Items.Add(new Separator()); 870horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToRightEndCommand)); 871horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToLeftEndCommand)); 872horizontalContextMenuRightToLeft.Items.Add(new Separator()); 873horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageRightCommand)); 874horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageLeftCommand)); 875horizontalContextMenuRightToLeft.Items.Add(new Separator()); 876horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineRightCommand)); 877horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineLeftCommand));
System\Windows\Controls\Primitives\Selector.cs (29)
45Items.CurrentChanged += new EventHandler(OnCurrentChanged); 286!CollectionViewSource.IsDefaultView(Items.CollectionView); 353if ((value is int) && (int) value >= s.Items.Count) 405if ( (selectedIndex > -1 && selectedIndex < s.Items.Count && s.Items[selectedIndex] == value) 406|| s.Items.Contains(value)) 571BindingExpression bindingExpr = PrepareItemValueBinding(Items.GetRepresentativeItem()); 588index = Items.IndexOf(value); 597return SystemXmlHelper.FindXmlNodeWithInnerText(Items, value, out index); 606foreach (object current in Items) 1045foreach (object current in Items) 1200if (Items.IsEmpty) 1205if (Items.CurrentItem != null && IsSynchronizedWithCurrentItemPrivate == true) 1222for (int i = 0; i < Items.Count; i++) 1534object item = Items.CurrentItem; 1538SelectionChange.SelectJustThisItem(NewItemInfo(item, null, Items.CurrentPosition), true /* assumeInItemsCollection */); 1565Items.MoveCurrentToPosition(-1); 1573Items.MoveCurrentToPosition(index); 1577Items.MoveCurrentTo(InternalSelectedItem); 1712if ((selectedIndex > Items.Count - 1) 1949if (!Items.IsEmpty) 1951_selectedItems.UsesItemHashCodes = Items.CollectionView.HasReliableHashCodes(); 1986for (int i=0; unknownCount > 0 && i<Items.Count; ++i) 1995key.Reset(Items[i]); 2150index = Items.IndexOf(_selectedItems[0].Item); 2354if (_owner.Items.Contains(info.Item)) 2447for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.Count; ++index) 2449ItemInfo info = _owner.NewItemInfo(_owner.Items[index], null, index); 2506if (!_owner.Items.Contains(info.Item))
System\Windows\Controls\TabControl.cs (6)
79ItemCollection tabItemCollection = tc.Items; 392if (startIndex > Items.Count) 432startIndex = Items.Count; 453for (int i = 0; i < Items.Count; i++) 456if (index >= Items.Count) 459index = Items.Count - 1;
System\Windows\Controls\TextSearch.cs (4)
186ItemCollection itemCollection = _attachedTo.Items as ItemCollection; 371ItemCollection itemCollection = itemsControl.Items; 400object item0 = itemsControl.Items[0]; 515string matchedText = GetPrimaryTextFromItem(itemsControl, itemsControl.Items[matchedItemIndex]);
System\Windows\Controls\TreeView.cs (1)
462item = Items[0];
System\Windows\Controls\TreeViewItem.cs (1)
1035for (int i = 0, count = item.Items.Count; i < count; i++)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
154ItemCollection items = _owner.Items; 979int numItems = _owner.Items.Count; 1008int numItems = _owner.Items.Count; 1064int numItems = _owner.Items.Count; 1152int numItems = _owner.Items.Count; 1181int rowIndex = _owner.Items.IndexOf(rows[i]); 1196int numItems = _owner.Items.Count; 1234RemoveRegion(0, columnIndex, _owner.Items.Count, 1, ref removedRegions); 1255int numItems = _owner.Items.Count; 1414int rowIndex = _owner.Items.IndexOf(rows[i]); 1571rowIndex = _owner.Items.IndexOf(cell.Item); 1611(rowIndex < owner.Items.Count) && (columnIndex < owner.Columns.Count))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12358"Items:", ic.Items.Count,
System\windows\Documents\TextEditorContextMenu.cs (9)
471this.Items.Add(new Separator()); 496this.Items.Add(menuItem); 507this.Items.Add(menuItem); 515this.Items.Add(menuItem); 578this.Items.Add(menuItem); 591this.Items.Add(menuItem); 608this.Items.Add(menuItem); 614this.Items.Add(menuItem); 620this.Items.Add(menuItem);
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
4307bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ComboBox)target).Items; }; 4342bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ContextMenu)target).Items; }; 4770bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.HeaderedItemsControl)target).Items; }; 4958bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ItemsControl)target).Items; }; 5043bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ListBox)target).Items; }; 5095bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ListView)target).Items; }; 5147bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Menu)target).Items; }; 5164bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.MenuBase)target).Items; }; 5181bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.MenuItem)target).Items; }; 5608bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.Selector)target).Items; }; 5693bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.StatusBar)target).Items; }; 5778bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TabControl)target).Items; }; 5950bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ToolBar)target).Items; }; 6036bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TreeView)target).Items; }; 6053bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TreeViewItem)target).Items; };
System\Windows\Markup\KnownTypes.cs (1)
2457return (o as System.Windows.Controls.ItemsControl).Items;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
1091DigitalSignaturesMenuItem.Items.Add(menuItem); 1096DigitalSignaturesMenuItem.Items.Add(menuItem); 1101DigitalSignaturesMenuItem.Items.Add(menuItem); 1830ZoomComboBox.Items.Add(newItem);
Roslyn.VisualStudio.DiagnosticsWindow (5)
DiagnosticsWindow.cs (3)
62tabControl.Items.Add(perfMarginPanel); 63tabControl.Items.Add(telemetryPanel); 64tabControl.Items.Add(workspacePanel);
PerfMargin\PerfMarginPanel.cs (2)
110listView.Items.Add(s); 132foreach (StackPanel item in _detailsListView.Items)
System.Windows.Controls.Ribbon (105)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
721int groupHeaderCount = groupHeaderItemsControl.Items.Count;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (9)
1501int itemCount = ribbon.Items.Count; 1538if (SelectedIndex < 0 && Items.Count > 0) 1562int itemCount = Items.Count; 1672int itemCount = Items.Count; 1989tab.Items.Count, 2040quickAccessToolBar.Items.Count, 2479ribbon.QuickAccessToolBar.Items.Add(e.CloneInstance); 2573if (qat.Items.Contains(originalSource)) 2575qat.Items.Remove(originalSource);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (3)
1049handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView); 1070handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView); 1343foreach(object item in Items)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (14)
281_defaultRibbonClientAreaContextMenu.Items.Add(GenerateQATPlacementMenuItem(_defaultRibbonClientAreaContextMenu)); 282_defaultRibbonClientAreaContextMenu.Items.Add(new RibbonSeparator()); 283_defaultRibbonClientAreaContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_defaultRibbonClientAreaContextMenu)); 294_ribbonControlContextMenu.Items.Add(GenerateAddToOrRemoveFromQATItem(false, _ribbonControlContextMenu)); 295_ribbonControlContextMenu.Items.Add(new RibbonSeparator()); 296_ribbonControlContextMenu.Items.Add(GenerateQATPlacementMenuItem(_ribbonControlContextMenu)); 297_ribbonControlContextMenu.Items.Add(new RibbonSeparator()); 298_ribbonControlContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_ribbonControlContextMenu)); 309_qatControlContextMenu.Items.Add(GenerateAddToOrRemoveFromQATItem(true, _qatControlContextMenu)); 310_qatControlContextMenu.Items.Add(new RibbonSeparator()); 311_qatControlContextMenu.Items.Add(GenerateQATPlacementMenuItem(_qatControlContextMenu)); 312_qatControlContextMenu.Items.Add(new RibbonSeparator()); 313_qatControlContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_qatControlContextMenu)); 327_galleryContextMenu.Items.Add(addGalleryToQATItem);
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
458for (int i = 0; i < Ribbon.Items.Count; i++) 521int itemCount = ribbon.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
99return RibbonHelper.FindContainer(this, Items.Count - 1, -1, null, HasTabs) as RibbonContextualTabGroup; 256int count = this.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
85for (int i = 0; i < Items.Count; i++) 102int itemCount = controlGroup.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (25)
591if (Items != null) 593for (int i = 0; i < Items.Count; i++) 974for (int i = 0; i < Items.Count; i++ ) 1081CollectionView = Items; 1167if (category != null && category.Items.Count > 0) 1170SetCurrentValue(SelectedItemProperty, category.Items[0]); 1392foreach (object current in Items) 1397index = category.Items.IndexOf(item); 1432foreach (object current in Items) 1437for (int index=0; index<category.Items.Count; index++) 1439item = category.Items[index]; 2154for (int index = 0; index < category.Items.Count; index++) 2162if (VerifyEqual(selectedItem, category.Items[index])) 2171SetCurrentValue(SelectedItemProperty, category.Items[index]); 2219for (int index = 0; index < category.Items.Count; index++) 2224object dataItem = category.Items[index]; 2318for (int i = 0; i < this.Items.Count; i++) 2325if (this.Items[i] is RibbonGalleryCategory) 2327category = (RibbonGalleryCategory)this.Items[i]; 2333filterToAdd = this.Items[i]; 2355for (int i = 0; i < gallery.Items.Count; i++) 2362if (gallery.Items[i] is RibbonGalleryCategory) 2364category = (RibbonGalleryCategory)gallery.Items[i]; 2370dataToCompareAgainst = gallery.Items[i]; 2530for (int index = 0; index < gallery.Items.Count; index++)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
454CollectionView = Items;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (8)
502if (Items.Count > 3) 532else if (Items.Count == 3) 552else if (Items.Count == 2) 841if (Items.Count == 0) 858for (int i = 0; i < Items.Count; i++) 1216int itemCount = Items.Count; 1575foreach (object item in RibbonGroup.Items) 1589foreach (object controlGroupItem in controlGroup.Items)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (22)
551FrameworkElement lastItem = FindContainer(itemsControl, itemsControl.Items.Count - 1, -1, bringIntoViewCallback, additionalCheck); 564int count = itemsControl.Items.Count; 588if (itemIndex < parent.Items.Count) 602if (startIndex == parent.Items.Count - 1) 605if (startIndex < parent.Items.Count - 1) 632startIndex = parent.Items.Count; 658RibbonGalleryCategory lastCategory = RibbonHelper.FindContainer(gallery, gallery.Items.Count - 1, -1, null, IsContainerVisible) as RibbonGalleryCategory; 770category = gallery.Items.Count > 0 ? gallery.ItemContainerGenerator.ContainerFromIndex(0) as RibbonGalleryCategory : null; 771galleryItem = category != null && category.Items.Count > 0 ? category.ItemContainerGenerator.ContainerFromIndex(0) as RibbonGalleryItem : null; 788endCatIndex = gallery.Items.Count; 809startItemIndex = galleryItem != null ? category.ItemContainerGenerator.IndexFromContainer(galleryItem) : category.Items.Count - 1; 832startColumnIndex = (galleryItem != null ? startItemIndex : category.Items.Count - 1) % columnCount; 839endItemIndex = category.Items.Count; 861int remainingItems = category.Items.Count; 901int remainingItems = category.Items.Count - itemIndex; 1929else if (menuItem.Items.Count == 0) 1940if (menuItem.Items.Count == 0) 1980wrapperButton.Items.Add(clone); 2246for (int i = 0; i < originalItemsControl.Items.Count; i++) 2248object clonedItem = CreateClone(originalItemsControl.Items[i]); 2249cloneItemsControl.Items.Add(clonedItem); 2488int parentItemCount = parentItemsControl.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
859handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
521foreach (object o in this.Items) 580int itemCount = QuickAccessToolBar.Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (5)
361_groupAutoResizeIndex = Items.Count - 1; 552_groupAutoResizeIndex = Items.Count - 1; 578_groupAutoResizeIndex = Items.Count - 1; 585if (numAttempts == Items.Count) 785int itemCount = Items.Count;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
133ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, Items.Count);
Microsoft\Windows\Controls\TextSearchInternal.cs (7)
138int itemCount = _attachedTo.Items.Count; 155ItemCollection itemCollection = childItemsControl.Items as ItemCollection; 243ItemCollection itemCollection = _attachedTo.Items as ItemCollection; 374ItemCollection itemCollection = itemsControl.Items; 500foreach (object item in itemsControl.Items) 510return childItemsControl.Items[matchedIndex]; 520return itemsControl.Items[matchedIndex];