204 references to ItemContainerGenerator
Microsoft.VisualStudio.LanguageServices (4)
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
206if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not DataGridRow row) 209row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as DataGridRow;
PickMembers\PickMembersDialog.xaml.cs (2)
110if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not ListViewItem row) 113row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as ListViewItem;
PresentationFramework (97)
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
133if (owner.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
211ListViewItem lvi = _listview.ItemContainerGenerator.ContainerFromIndex(row) as ListViewItem; 221lvi = _listview.ItemContainerGenerator.ContainerFromIndex(row) as ListViewItem;
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
55ListViewItem lvi = listview.ItemContainerGenerator.ContainerFromItem(item) as ListViewItem; 65int row = listview.ItemContainerGenerator.IndexFromContainer(lvi);
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
218object item = itemsControl.ItemContainerGenerator.ItemFromContainer(child); 304CollectionViewGroupInternal cvg = itemsControl.ItemContainerGenerator.ItemFromContainer(Owner) as CollectionViewGroupInternal;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
107wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement; 749if (parent.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
165dataItem = (d != null) ? owner.ItemContainerGenerator.ItemFromContainer(d) : null; 776((IItemContainerGenerator)_itemsControl.ItemContainerGenerator).PrepareItemContainer(_container);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
188UIElement uiElement = owner.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
58StatusBarItem item = itemscontrol.ItemContainerGenerator.ContainerFromItem(obj) as StatusBarItem;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
86TreeViewItem treeViewItem = owner.ItemContainerGenerator.ContainerFromIndex(i) as TreeViewItem;
System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (1)
317if (parent.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Controls\ComboBox.cs (2)
1262object item = ItemContainerGenerator.ItemFromContainer(comboBoxItem); 1581DependencyObject container = ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\DataGrid.cs (16)
455if (ColumnHeadersPresenter != null && ColumnHeadersPresenter.ItemContainerGenerator != null) 457return (DataGridColumnHeader)ColumnHeadersPresenter.ItemContainerGenerator.ContainerFromIndex(columnIndex); 617foreach (DependencyObject container in ItemContainerGenerator.RecyclableContainers) 1306var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1326var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1352var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1550if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1587if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1813DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 2154newItemIndex = ItemContainerGenerator.IndexFromContainer(cell.RowOwner); 3099(currentIndex < 0 || currentIndex == ItemContainerGenerator.IndexFromContainer(row)) 3811DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 5631CollectionViewGroupInternal cvg = ItemContainerGenerator.ItemFromContainer(currentGroupItem) as CollectionViewGroupInternal; 6433row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6482row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 7054DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item);
System\Windows\Controls\DataGridCell.cs (1)
86PrepareCell(item, ownerRow, cellsPresenter.ItemContainerGenerator.IndexFromContainer(this));
System\Windows\Controls\DataGridCellsPanel.cs (2)
892ItemContainerGenerator generator = parentPresenter.ItemContainerGenerator; 1791IItemContainerGenerator generator = parentPresenter.ItemContainerGenerator as IItemContainerGenerator;
System\Windows\Controls\DataGridColumn.cs (1)
622DataGridRow row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as DataGridRow;
System\Windows\Controls\DataGridRow.cs (2)
1319return dataGridOwner.ItemContainerGenerator.IndexFromContainer(this); 1362return cellsPresenter.ItemContainerGenerator.ContainerFromIndex(index) as DataGridCell;
System\Windows\Controls\GroupItem.cs (1)
67Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.ItemContainerGenerator.ItemFromContainer(this));
System\Windows\Controls\ItemsControl.cs (19)
903ItemContainerGenerator.OnPanelChanged(); 1076ItemContainerGenerator.ChangeAlternationCount(); 2609FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2677container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2687container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2773object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2928FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 3209object item = itemsControl.ItemContainerGenerator.ItemFromContainer(focusedElement); 3452item = itemsControl.ItemContainerGenerator.ItemFromContainer(element); 3543object item = ItemContainerGenerator.ItemFromContainer(container); 3582return new ItemInfo(item, container, index).Refresh(ItemContainerGenerator); 3588return NewItemInfo(ItemContainerGenerator.ItemFromContainer(container), container, ItemContainerGenerator.IndexFromContainer(container)); 3594return (index >= 0) ? NewItemInfo(Items[index], ItemContainerGenerator.ContainerFromIndex(index), index) 3612container = ItemContainerGenerator.ContainerFromIndex(info.Index); 3617container = ItemContainerGenerator.ContainerFromItem(info.Item); 3684container = ItemContainerGenerator.ContainerFromIndex(index); 3690ItemContainerGenerator.FindItem( 3822info.Refresh(ItemContainerGenerator);
System\Windows\Controls\ItemsPresenter.cs (1)
216generator = owner.ItemContainerGenerator;
System\Windows\Controls\ListBox.cs (3)
127if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 948return ItemContainerGenerator.IndexFromContainer(listItem); 953return ItemContainerGenerator.ContainerFromIndex(index) as ListBoxItem;
System\Windows\Controls\ListView.cs (1)
263ItemContainerGenerator.Refresh();
System\Windows\Controls\Menu.cs (1)
354MenuItem menuItem = ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\MenuItem.cs (2)
369object originalItem = parent.ItemContainerGenerator.ItemFromContainer(menuItem); 635MenuItem subItem = menuItem.ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\Panel.cs (2)
263IItemContainerGenerator generator = itemsControl.ItemContainerGenerator as IItemContainerGenerator; 585IItemContainerGenerator itemsOwnerGenerator = itemsOwner.ItemContainerGenerator;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
166cell = (DataGridCell)ItemContainerGenerator.ContainerFromIndex(i); 184cell = (DataGridCell)ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
270int index = ItemContainerGenerator.IndexFromContainer(container);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
694int index = dataGrid.ItemContainerGenerator.IndexFromContainer(row); 697return (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1);
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
59IItemContainerGenerator generator = dataGrid.ItemContainerGenerator as IItemContainerGenerator;
System\Windows\Controls\Primitives\MenuBase.cs (1)
697MenuItem mi = menu.ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\Primitives\Selector.cs (3)
55ItemContainerGenerator.StatusChanged += new EventHandler(OnGeneratorStatusChanged); 1490if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1879object data = itemsControl.ItemContainerGenerator.ItemFromContainer(o);
System\Windows\Controls\TabControl.cs (9)
92TabItem ti = tc.ItemContainerGenerator.ContainerFromIndex(i) as TabItem; 327ItemContainerGenerator.StatusChanged += new EventHandler(OnGeneratorStatusChanged); 429startIndex = ItemContainerGenerator.IndexFromContainer(ItemContainerGenerator.ContainerFromItem(SelectedItem)); 471TabItem tabItem = ItemContainerGenerator.ContainerFromIndex(index) as TabItem; 510if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 531tabItem = ItemContainerGenerator.ContainerFromIndex(SelectedIndex) as TabItem; 537!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem))) 539tabItem = ItemContainerGenerator.ContainerFromItem(selectedItem) as TabItem;
System\Windows\Controls\TreeView.cs (2)
355ChangeSelection(collapsed.ParentItemsControl.ItemContainerGenerator.ItemFromContainer(collapsed), collapsed, true); 468container = ItemContainerGenerator.ContainerFromIndex(0) as TreeViewItem;
System\Windows\Controls\TreeViewItem.cs (3)
937ItemContainerGenerator.RemoveAllInternal(true /*saveRecycleQueue*/); 1047subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i); 1051subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\VirtualizingStackPanel.cs (4)
4183parentItem = itemsControl.ItemContainerGenerator.ItemFromContainer(groupItem); 4190parentItem = parentItemsControl.ItemContainerGenerator.ItemFromContainer(itemsControl); 9130item = itemsControl.ItemContainerGenerator.ItemFromContainer(child); 9453CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.ItemContainerGenerator.ItemFromContainer(child), child);
System.Windows.Controls.Ribbon (103)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
181IItemContainerGenerator generator = groupHeaderItemsControl.ItemContainerGenerator as IItemContainerGenerator;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
75IItemContainerGenerator generator = itemsControl.ItemContainerGenerator as IItemContainerGenerator;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
281IItemContainerGenerator generator = tabHeaderItemsControl.ItemContainerGenerator as IItemContainerGenerator; 722if (groupHeaderItemsControl.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 727RibbonContextualTabGroup groupHeader = groupHeaderItemsControl.ItemContainerGenerator.ContainerFromIndex(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
72if (groupHeaderItemsControl.ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (17)
142ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 791int index = _tabHeaderItemsControl.ItemContainerGenerator.IndexFromContainer(tabHeader); 900if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1105if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated && 1281RibbonTab selectedTab = ribbon.ItemContainerGenerator.ContainerFromItem(ribbon.SelectedItem) as RibbonTab; 1507RibbonTab ribbonTab = ribbon.ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab; 1568RibbonTab tab = ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab; 1674Debug.Assert(ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated, "Expected: containers should be generated before calling this method."); 1678RibbonTab tab = ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab; 1739if (isMinimized && ribbon.ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) 1748if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1907selectedTab = ItemContainerGenerator.ContainerFromIndex(selectedIndex) as RibbonTab; 1953return (tabHeaderItemsControl.ItemContainerGenerator.ContainerFromIndex(selectedIndex) as RibbonTabHeader); 2005return tab.ItemContainerGenerator.IndexFromContainer(ribbonGroup); 2011RibbonGroup group = tab.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGroup; 2055RibbonControl ribbonControl = quickAccessToolBar.ItemContainerGenerator.ContainerFromIndex(index) as RibbonControl; 2079return quickAccessToolBar.ItemContainerGenerator.IndexFromContainer(ribbonControl);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
750matchedGalleryCategory.ItemContainerGenerator.ContainerFromItem(matchedItem) as RibbonGalleryItem; 1347firstGallery = ItemContainerGenerator.ContainerFromItem(item) as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
462RibbonTab tab = Ribbon.ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab; 526RibbonTab tab = ribbon.ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
261RibbonContextualTabGroup tabGroup = this.ItemContainerGenerator.ContainerFromIndex(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
90DependencyObject child = ItemContainerGenerator.ContainerFromIndex(i); 112RibbonControl ribbonControl = controlGroup.ItemContainerGenerator.ContainerFromIndex(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (25)
88this.ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 106Debug.Assert(_filterMenuButton.ItemContainerGenerator != null); 107_filterMenuButton.ItemContainerGenerator.StatusChanged -= OnFilterButtonItemContainerGeneratorStatusChanged; 114Debug.Assert(_filterMenuButton.ItemContainerGenerator != null); 115_filterMenuButton.ItemContainerGenerator.StatusChanged += new EventHandler(OnFilterButtonItemContainerGeneratorStatusChanged); 333if (this.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 349if (_filterMenuButton.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 353RibbonMenuItem filterItem = _filterMenuButton.ItemContainerGenerator.ContainerFromItem(filter) as RibbonMenuItem; 597RibbonGalleryCategory category = (RibbonGalleryCategory)ItemContainerGenerator.ContainerFromIndex(i); 978RibbonGalleryCategory category = ItemContainerGenerator.ContainerFromIndex(i) as RibbonGalleryCategory; 1026if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1048MoveCurrentTo(CollectionView, ItemContainerGenerator.ItemFromContainer(category)); 1168RibbonGalleryCategory category = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryCategory; 1389ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) 1396category = ItemContainerGenerator.ContainerFromItem(current) as RibbonGalleryCategory; 1402galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGalleryItem; 1427ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) 1436category = ItemContainerGenerator.ContainerFromItem(current) as RibbonGalleryCategory; 1445galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGalleryItem; 2158RibbonGalleryItem galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGalleryItem; 2223RibbonGalleryItem galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGalleryItem; 2334category = (RibbonGalleryCategory)this.ItemContainerGenerator.ContainerFromIndex(i); 2355Debug.Assert(gallery.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated); 2371category = (RibbonGalleryCategory)gallery.ItemContainerGenerator.ContainerFromIndex(i); 2534RibbonGalleryCategory category = (RibbonGalleryCategory)gallery.ItemContainerGenerator.ContainerFromIndex(index);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (4)
70this.ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 199if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 502if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 523RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryItem;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
192object item = category.ItemContainerGenerator.ItemFromContainer(galleryItem); 246object item = category.ItemContainerGenerator.ItemFromContainer(galleryItem);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
863RibbonControl ribbonControl = ItemContainerGenerator.ContainerFromIndex(i) as RibbonControl; 1034if (group.ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) 1066int index = ItemContainerGenerator.IndexFromContainer(element); 1222DependencyObject d = ItemContainerGenerator.ContainerFromIndex(i);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
572FrameworkElement container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 578container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 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; 783int startCatIndex = gallery.ItemContainerGenerator.IndexFromContainer(category); 799category = gallery.ItemContainerGenerator.ContainerFromIndex(catIndex) as RibbonGalleryCategory; 814startItemIndex = galleryItem != null ? category.ItemContainerGenerator.IndexFromContainer(galleryItem) : category.Items.Count - 1; 823highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as RibbonGalleryItem; 843startItemIndex = galleryItem != null ? category.ItemContainerGenerator.IndexFromContainer(galleryItem) : 0; 852highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as RibbonGalleryItem; 890highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(itemIndex) as RibbonGalleryItem; 2494int itemIndex = parentItemsControl.ItemContainerGenerator.IndexFromContainer(menuItem); 2504UIElement container = parentItemsControl.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (6)
709ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 790int focusedIndex = ItemContainerGenerator.IndexFromContainer(e.OriginalSource as DependencyObject); 1219if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1221ItemContainerGenerator.StatusChanged -= OnItemContainerGeneratorStatusChanged; 1233if ((menuButton.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) && 1245if ((menuButton.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) &&
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (6)
347if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 349ItemContainerGenerator.StatusChanged -= OnItemContainerGeneratorStatusChanged; 361if ((menuItem.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) && 373if ((menuItem.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) && 659ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 833int focusedIndex = ItemContainerGenerator.IndexFromContainer(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
591RibbonControl ribbonControl = QuickAccessToolBar.ItemContainerGenerator.ContainerFromIndex(i) as RibbonControl; 617RibbonControl ribbonControl = QuickAccessToolBar.ItemContainerGenerator.ContainerFromIndex(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (5)
187int index = ribbon.ItemContainerGenerator.IndexFromContainer(this); 193return headerItemsControl.ItemContainerGenerator.ContainerFromIndex(index) as RibbonTabHeader; 437nextRibbonGroup = ItemContainerGenerator.ContainerFromIndex(nextGroupIndex) as RibbonGroup; 565RibbonGroup group = ItemContainerGenerator.ContainerFromIndex((_groupAutoResizeIndex--).Value) as RibbonGroup; 790RibbonGroup group = ItemContainerGenerator.ContainerFromIndex(i) as RibbonGroup;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
129int index = tabHeaderItemsControl.ItemContainerGenerator.IndexFromContainer(this); 130return ribbon.ItemContainerGenerator.ContainerFromIndex(index) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
137if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 161FrameworkElement element = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
145ItemsControl childItemsControl = _attachedTo.ItemContainerGenerator.ContainerFromIndex(currentIndex) as ItemsControl; 506ItemsControl childItemsControl = itemsControl.ItemContainerGenerator.ContainerFromItem(item) as ItemsControl;