349 references to Items
Microsoft.VisualStudio.LanguageServices (13)
ChangeSignature\ChangeSignatureDialog.xaml.cs (8)
106Members.Items.Refresh(); 129Members.Items.Refresh(); 139Members.Items.Refresh(); 150Members.Items.Refresh(); 234var potentialNewSelectedParameter = Members.Items[oldSelectedIndex - 1] as ChangeSignatureDialogViewModel.ParameterViewModel; 247if (oldSelectedIndex >= 0 && oldSelectedIndex < Members.Items.Count - 1) 263Members.SelectedIndex = Members.Items.IndexOf(Members.CurrentItem); 285Members.Items.Refresh();
PickMembers\PickMembersDialog.xaml.cs (3)
65Members.Items.Refresh(); 86Members.Items.Refresh(); 99Members.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)
195this.Items.Add(new Separator()); 223this.Items.Add(menuItem);
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (4)
145return this.OwningDataGrid.Items.Count; 151if (row >= 0 && row < this.OwningDataGrid.Items.Count && 154object item = this.OwningDataGrid.Items[row]; 280foreach (object item in this.OwningDataGrid.Items)
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
549return this.OwningDataGrid.Items.IndexOf(this.Item);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (3)
233IEditableCollectionView iecv = (IEditableCollectionView)this.OwningDataGrid.Items; 312if (this.OwningDataGrid.Items.Contains(item)) 374int rowIndex = dataGrid.Items.IndexOf(Item);
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 (2)
340ItemCollection itemCollection = itemsControl.Items; 355ItemCollection itemCollection = itemsControl.Items;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (3)
73ItemCollection items = owner.Items; 240ItemCollection items = owner.Items; 265items = owner.Items;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (3)
105foreach (var item in parent.Items) 137foreach (var item in parent.Items) 181ItemCollection items = owner.Items;
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
100int itemsCount = (owner as ItemsControl).Items.Count;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
49foreach (object obj in itemscontrol.Items)
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
76ItemCollection items = owner.Items;
System\Windows\Controls\ComboBox.cs (6)
1116index = Items.IndexOf(info.Item); 1528if (!Items.IsEmpty) 1543int count = Items.Count; 1560SelectItemHelper(0, +1, Items.Count); 1565SelectItemHelper(Items.Count - 1, -1, -1); 1580object item = Items[i];
System\Windows\Controls\DataGrid.cs (53)
93((INotifyCollectionChanged)Items).CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsCollectionChanged); 95((INotifyCollectionChanged)Items.SortDescriptions).CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsSortDescriptionsChanged); 96Items.GroupDescriptions.CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsGroupDescriptionsChanged); 1803if (rowIndex < (Items.Count - 1)) 2650indexToSelect = Math.Min(Items.Count - numSelected - 1, indexToSelect); 2702object itemToSelect = Items[indexToSelect]; 2731index = Items.Count - 2; 2732if (index >= 0 && ItemsControl.EqualsEx(newItem, Items[index])) 2740if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 2750info = ItemInfoFromIndex(Items.IndexOf(newItem)); 3577IEditableCollectionViewAddNewItem ani = (IEditableCollectionViewAddNewItem)Items; 3679newItemIndex = Items.IndexOf(currentAddItem); 3739get { return (IEditableCollectionView)Items; } 3823int itemCount = Items.Count; 3826SetCurrentItem(Items[itemCount - 1]); 3831if (Items.Count > 0) 3833SetCurrentItem(Items[0]); 3842int itemsCount = Items.Count; 4359int numItems = Items.Count; 4392int numItems = Items.Count; 4949IEnumerator enumerator = ((IEnumerable)Items).GetEnumerator(); 5061ItemCollection items = Items; 5124object item = Items[i]; 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; 5997index = Items.IndexOf(CurrentItem); 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--) 7093dataGrid.Items.CanSort == false) 7150if (Items.NeedsRefresh) 7154Items.Refresh(); 7158Items.SortDescriptions.Clear(); 7210using (Items.DeferRefresh()) 7216Items.SortDescriptions.Clear(); 7221for (int i = 0; i < Items.SortDescriptions.Count; i++) 7223if (string.Equals(Items.SortDescriptions[i].PropertyName, sortPropertyName, StringComparison.Ordinal) && 7236Items.SortDescriptions[descriptorIndex] = sortDescription; 7240Items.SortDescriptions.Add(sortDescription); 7256Items.SortDescriptions.Clear(); 7350Items.SortDescriptions.RemoveAt(GroupingSortDescriptionIndices[i] - i); 7391foreach (GroupDescription groupDescription in Items.GroupDescriptions) 7397Items.SortDescriptions.Insert(insertIndex, sortDescription); 7595Items.SortDescriptions.Clear(); 7803ReadOnlyCollection<ItemPropertyInfo> itemProperties = ((IItemProperties)Items).ItemProperties; 8311object row = Items[i]; 8373rowIndex = Items.IndexOf(args.Item);
System\Windows\Controls\DataGridCellsPanel.cs (2)
1084cellsPresenter.IsItemItsOwnContainerInternal(cellsPresenter.Items[columnIndex])) || 1086headersPresenter.IsItemItsOwnContainerInternal(headersPresenter.Items[columnIndex])))
System\Windows\Controls\HeaderedItemsControl.cs (2)
349itemCount = HasItems ? Items.Count : 0; 360itemCount = HasItems ? Items.Count : 0;
System\Windows\Controls\ItemsControl.cs (15)
204ic.Items.SetItemsSource(newValue, (object x)=>beb.GetSourceItem(x) ); 209ic.Items.SetItemsSource(newValue); 214ic.Items.ClearItemsSource(); 244get { return Items.ItemsSource; } 290return this.Items.LogicalChildren; 1269Items.Add(value); 1288Items.Add(text); 1306get { return Items; } 1467HasItems && Items.Contains(container); 2582elementIndex = Items.IndexOf(item); 2606int count = Items.Count; 2618return Items[startIndex]; 3594return (index >= 0) ? NewItemInfo(Items[index], ItemContainerGenerator.ContainerFromIndex(index), index) 3810info.Index = Items.IndexOf(info.Item); 4006int itemsCount = HasItems ? Items.Count : 0;
System\Windows\Controls\ListBox.cs (2)
833AnchorItemInternal = NewItemInfo(Items[0], null, 0); 882IEnumerator enumerator = ((IEnumerable)Items).GetEnumerator();
System\Windows\Controls\Menu.cs (2)
352for (int i = 0; i < Items.Count; i++) 356if (menuItem != null && !(Items[i] is Separator))
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 (2)
653dataGrid.CanUserResizeRows && dataGrid.Items.Count > 1 && 654!object.ReferenceEquals(parent.Item, dataGrid.Items[0]))
System\Windows\Controls\Primitives\MenuBase.cs (1)
693int itemsCount = menu.Items.Count;
System\Windows\Controls\Primitives\ScrollBar.cs (30)
844verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 845verticalContextMenu.Items.Add(new Separator()); 846verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Top), "Top", ScrollBar.ScrollToTopCommand)); 847verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_Bottom), "Bottom", ScrollBar.ScrollToBottomCommand)); 848verticalContextMenu.Items.Add(new Separator()); 849verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageUp), "PageUp", ScrollBar.PageUpCommand)); 850verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageDown), "PageDown", ScrollBar.PageDownCommand)); 851verticalContextMenu.Items.Add(new Separator()); 852verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollUp), "ScrollUp", ScrollBar.LineUpCommand)); 853verticalContextMenu.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollDown), "ScrollDown", ScrollBar.LineDownCommand)); 864horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 865horizontalContextMenuLeftToRight.Items.Add(new Separator()); 866horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToLeftEndCommand)); 867horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToRightEndCommand)); 868horizontalContextMenuLeftToRight.Items.Add(new Separator()); 869horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageLeftCommand)); 870horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageRightCommand)); 871horizontalContextMenuLeftToRight.Items.Add(new Separator()); 872horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineLeftCommand)); 873horizontalContextMenuLeftToRight.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineRightCommand)); 884horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollHere), "ScrollHere", ScrollBar.ScrollHereCommand)); 885horizontalContextMenuRightToLeft.Items.Add(new Separator()); 886horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_LeftEdge), "LeftEdge", ScrollBar.ScrollToRightEndCommand)); 887horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_RightEdge), "RightEdge", ScrollBar.ScrollToLeftEndCommand)); 888horizontalContextMenuRightToLeft.Items.Add(new Separator()); 889horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageLeft), "PageLeft", ScrollBar.PageRightCommand)); 890horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_PageRight), "PageRight", ScrollBar.PageLeftCommand)); 891horizontalContextMenuRightToLeft.Items.Add(new Separator()); 892horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollLeft), "ScrollLeft", ScrollBar.LineRightCommand)); 893horizontalContextMenuRightToLeft.Items.Add(CreateMenuItem(nameof(SR.ScrollBar_ContextMenu_ScrollRight), "ScrollRight", ScrollBar.LineLeftCommand));
System\Windows\Controls\Primitives\Selector.cs (29)
54Items.CurrentChanged += new EventHandler(OnCurrentChanged); 295!CollectionViewSource.IsDefaultView(Items.CollectionView); 362if ((value is int) && (int) value >= s.Items.Count) 414if ( (selectedIndex > -1 && selectedIndex < s.Items.Count && s.Items[selectedIndex] == value) 415|| s.Items.Contains(value)) 580BindingExpression bindingExpr = PrepareItemValueBinding(Items.GetRepresentativeItem()); 597index = Items.IndexOf(value); 606return SystemXmlHelper.FindXmlNodeWithInnerText(Items, value, out index); 615foreach (object current in Items) 1054foreach (object current in Items) 1209if (Items.IsEmpty) 1214if (Items.CurrentItem != null && IsSynchronizedWithCurrentItemPrivate == true) 1231for (int i = 0; i < Items.Count; i++) 1543object item = Items.CurrentItem; 1547SelectionChange.SelectJustThisItem(NewItemInfo(item, null, Items.CurrentPosition), true /* assumeInItemsCollection */); 1574Items.MoveCurrentToPosition(-1); 1582Items.MoveCurrentToPosition(index); 1586Items.MoveCurrentTo(InternalSelectedItem); 1721if ((selectedIndex > Items.Count - 1) 1958if (!Items.IsEmpty) 1960_selectedItems.UsesItemHashCodes = Items.CollectionView.HasReliableHashCodes(); 1995for (int i=0; unknownCount > 0 && i<Items.Count; ++i) 2004key.Reset(Items[i]); 2159index = Items.IndexOf(_selectedItems[0].Item); 2363if (_owner.Items.Contains(info.Item)) 2456for (int index = 0; _toSelect.UnresolvedCount > 0 && index < _owner.Items.Count; ++index) 2458ItemInfo info = _owner.NewItemInfo(_owner.Items[index], null, index); 2515if (!_owner.Items.Contains(info.Item))
System\Windows\Controls\TabControl.cs (6)
89ItemCollection tabItemCollection = tc.Items; 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 (4)
197ItemCollection itemCollection = _attachedTo.Items as ItemCollection; 382ItemCollection itemCollection = itemsControl.Items; 411object item0 = itemsControl.Items[0]; 526string matchedText = GetPrimaryTextFromItem(itemsControl, itemsControl.Items[matchedItemIndex]);
System\Windows\Controls\TreeView.cs (1)
467item = Items[0];
System\Windows\Controls\TreeViewItem.cs (1)
1039for (int i = 0, count = item.Items.Count; i < count; i++)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (12)
158ItemCollection items = _owner.Items; 983int numItems = _owner.Items.Count; 1012int numItems = _owner.Items.Count; 1068int numItems = _owner.Items.Count; 1156int numItems = _owner.Items.Count; 1185int rowIndex = _owner.Items.IndexOf(rows[i]); 1200int numItems = _owner.Items.Count; 1238RemoveRegion(0, columnIndex, _owner.Items.Count, 1, ref removedRegions); 1259int numItems = _owner.Items.Count; 1418int rowIndex = _owner.Items.IndexOf(rows[i]); 1575rowIndex = _owner.Items.IndexOf(cell.Item); 1615(rowIndex < owner.Items.Count) && (columnIndex < owner.Columns.Count))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12363"Items:", ic.Items.Count,
System\windows\Documents\TextEditorContextMenu.cs (9)
473this.Items.Add(new Separator()); 498this.Items.Add(menuItem); 509this.Items.Add(menuItem); 517this.Items.Add(menuItem); 580this.Items.Add(menuItem); 593this.Items.Add(menuItem); 610this.Items.Add(menuItem); 616this.Items.Add(menuItem); 622this.Items.Add(menuItem);
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (15)
4309bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ComboBox)target).Items; }; 4344bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ContextMenu)target).Items; }; 4772bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.HeaderedItemsControl)target).Items; }; 4960bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ItemsControl)target).Items; }; 5045bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ListBox)target).Items; }; 5097bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ListView)target).Items; }; 5149bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Menu)target).Items; }; 5166bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.MenuBase)target).Items; }; 5183bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.MenuItem)target).Items; }; 5610bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.Selector)target).Items; }; 5695bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Primitives.StatusBar)target).Items; }; 5780bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TabControl)target).Items; }; 5952bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ToolBar)target).Items; }; 6038bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.TreeView)target).Items; }; 6055bamlMember.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)
1098DigitalSignaturesMenuItem.Items.Add(menuItem); 1103DigitalSignaturesMenuItem.Items.Add(menuItem); 1108DigitalSignaturesMenuItem.Items.Add(menuItem); 1837ZoomComboBox.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)
724int groupHeaderCount = groupHeaderItemsControl.Items.Count;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (9)
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, 2482ribbon.QuickAccessToolBar.Items.Add(e.CloneInstance); 2576if (qat.Items.Contains(originalSource)) 2578qat.Items.Remove(originalSource);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (3)
1051handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView); 1072handled = RibbonHelper.NavigateToPreviousMenuItemOrGallery(this, Items.Count, BringIndexIntoView); 1345foreach(object item in Items)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (14)
283_defaultRibbonClientAreaContextMenu.Items.Add(GenerateQATPlacementMenuItem(_defaultRibbonClientAreaContextMenu)); 284_defaultRibbonClientAreaContextMenu.Items.Add(new RibbonSeparator()); 285_defaultRibbonClientAreaContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_defaultRibbonClientAreaContextMenu)); 296_ribbonControlContextMenu.Items.Add(GenerateAddToOrRemoveFromQATItem(false, _ribbonControlContextMenu)); 297_ribbonControlContextMenu.Items.Add(new RibbonSeparator()); 298_ribbonControlContextMenu.Items.Add(GenerateQATPlacementMenuItem(_ribbonControlContextMenu)); 299_ribbonControlContextMenu.Items.Add(new RibbonSeparator()); 300_ribbonControlContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_ribbonControlContextMenu)); 311_qatControlContextMenu.Items.Add(GenerateAddToOrRemoveFromQATItem(true, _qatControlContextMenu)); 312_qatControlContextMenu.Items.Add(new RibbonSeparator()); 313_qatControlContextMenu.Items.Add(GenerateQATPlacementMenuItem(_qatControlContextMenu)); 314_qatControlContextMenu.Items.Add(new RibbonSeparator()); 315_qatControlContextMenu.Items.Add(GenerateMinimizeTheRibbonItem(_qatControlContextMenu)); 329_galleryContextMenu.Items.Add(addGalleryToQATItem);
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 (25)
593if (Items != null) 595for (int i = 0; i < Items.Count; i++) 976for (int i = 0; i < Items.Count; i++ ) 1083CollectionView = Items; 1169if (category != null && category.Items.Count > 0) 1172SetCurrentValue(SelectedItemProperty, category.Items[0]); 1394foreach (object current in Items) 1399index = category.Items.IndexOf(item); 1434foreach (object current in Items) 1439for (int index=0; index<category.Items.Count; index++) 1441item = category.Items[index]; 2156for (int index = 0; index < category.Items.Count; index++) 2164if (VerifyEqual(selectedItem, category.Items[index])) 2173SetCurrentValue(SelectedItemProperty, category.Items[index]); 2221for (int index = 0; index < category.Items.Count; index++) 2226object dataItem = category.Items[index]; 2320for (int i = 0; i < this.Items.Count; i++) 2327if (this.Items[i] is RibbonGalleryCategory) 2329category = (RibbonGalleryCategory)this.Items[i]; 2335filterToAdd = this.Items[i]; 2357for (int i = 0; i < gallery.Items.Count; i++) 2364if (gallery.Items[i] is RibbonGalleryCategory) 2366category = (RibbonGalleryCategory)gallery.Items[i]; 2372dataToCompareAgainst = gallery.Items[i]; 2532for (int index = 0; index < gallery.Items.Count; index++)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
459CollectionView = Items;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (8)
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; 1578foreach (object item in RibbonGroup.Items) 1592foreach (object controlGroupItem in controlGroup.Items)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (22)
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) 1985wrapperButton.Items.Add(clone); 2251for (int i = 0; i < originalItemsControl.Items.Count; i++) 2253object clonedItem = CreateClone(originalItemsControl.Items[i]); 2254cloneItemsControl.Items.Add(clonedItem); 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 (2)
526foreach (object o in this.Items) 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 (7)
141int itemCount = _attachedTo.Items.Count; 158ItemCollection itemCollection = childItemsControl.Items as ItemCollection; 246ItemCollection itemCollection = _attachedTo.Items as ItemCollection; 377ItemCollection itemCollection = itemsControl.Items; 503foreach (object item in itemsControl.Items) 513return childItemsControl.Items[matchedIndex]; 523return itemsControl.Items[matchedIndex];