204 references to ItemContainerGenerator
Microsoft.VisualStudio.LanguageServices (4)
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
207if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not DataGridRow row) 210row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as DataGridRow;
PickMembers\PickMembersDialog.xaml.cs (2)
111if (Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) is not ListViewItem row) 114row = Members.ItemContainerGenerator.ContainerFromIndex(Members.SelectedIndex) as ListViewItem;
PresentationFramework (97)
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
121if (owner.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
199ListViewItem lvi = _listview.ItemContainerGenerator.ContainerFromIndex(row) as ListViewItem; 209lvi = _listview.ItemContainerGenerator.ContainerFromIndex(row) as ListViewItem;
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
43ListViewItem lvi = listview.ItemContainerGenerator.ContainerFromItem(item) as ListViewItem; 53int row = listview.ItemContainerGenerator.IndexFromContainer(lvi);
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
206object item = itemsControl.ItemContainerGenerator.ItemFromContainer(child); 292CollectionViewGroupInternal cvg = itemsControl.ItemContainerGenerator.ItemFromContainer(Owner) as CollectionViewGroupInternal;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
97wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement; 739if (parent.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
153dataItem = (d != null) ? owner.ItemContainerGenerator.ItemFromContainer(d) : null; 764((IItemContainerGenerator)_itemsControl.ItemContainerGenerator).PrepareItemContainer(_container);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
175UIElement uiElement = owner.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
48StatusBarItem item = itemscontrol.ItemContainerGenerator.ContainerFromItem(obj) as StatusBarItem;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
73TreeViewItem treeViewItem = owner.ItemContainerGenerator.ContainerFromIndex(i) as TreeViewItem;
System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (1)
305if (parent.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Controls\ComboBox.cs (2)
1252object item = ItemContainerGenerator.ItemFromContainer(comboBoxItem); 1571DependencyObject container = ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\DataGrid.cs (16)
452if (ColumnHeadersPresenter != null && ColumnHeadersPresenter.ItemContainerGenerator != null) 454return (DataGridColumnHeader)ColumnHeadersPresenter.ItemContainerGenerator.ContainerFromIndex(columnIndex); 614foreach (DependencyObject container in ItemContainerGenerator.RecyclableContainers) 1303var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1323var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1349var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1547if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1584if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1810DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 2151newItemIndex = ItemContainerGenerator.IndexFromContainer(cell.RowOwner); 3096(currentIndex < 0 || currentIndex == ItemContainerGenerator.IndexFromContainer(row)) 3808DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 5628CollectionViewGroupInternal cvg = ItemContainerGenerator.ItemFromContainer(currentGroupItem) as CollectionViewGroupInternal; 6430row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6479row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 7051DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item);
System\Windows\Controls\DataGridCell.cs (1)
79PrepareCell(item, ownerRow, cellsPresenter.ItemContainerGenerator.IndexFromContainer(this));
System\Windows\Controls\DataGridCellsPanel.cs (2)
888ItemContainerGenerator generator = parentPresenter.ItemContainerGenerator; 1787IItemContainerGenerator generator = parentPresenter.ItemContainerGenerator as IItemContainerGenerator;
System\Windows\Controls\DataGridColumn.cs (1)
619DataGridRow row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as DataGridRow;
System\Windows\Controls\DataGridRow.cs (2)
1315return dataGridOwner.ItemContainerGenerator.IndexFromContainer(this); 1358return cellsPresenter.ItemContainerGenerator.ContainerFromIndex(index) as DataGridCell;
System\Windows\Controls\GroupItem.cs (1)
59Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.ItemContainerGenerator.ItemFromContainer(this));
System\Windows\Controls\ItemsControl.cs (19)
894ItemContainerGenerator.OnPanelChanged(); 1067ItemContainerGenerator.ChangeAlternationCount(); 2600FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2668container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2678container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2764object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2919FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 3200object item = itemsControl.ItemContainerGenerator.ItemFromContainer(focusedElement); 3443item = itemsControl.ItemContainerGenerator.ItemFromContainer(element); 3534object item = ItemContainerGenerator.ItemFromContainer(container); 3573return new ItemInfo(item, container, index).Refresh(ItemContainerGenerator); 3579return NewItemInfo(ItemContainerGenerator.ItemFromContainer(container), container, ItemContainerGenerator.IndexFromContainer(container)); 3585return (index >= 0) ? NewItemInfo(Items[index], ItemContainerGenerator.ContainerFromIndex(index), index) 3603container = ItemContainerGenerator.ContainerFromIndex(info.Index); 3608container = ItemContainerGenerator.ContainerFromItem(info.Item); 3675container = ItemContainerGenerator.ContainerFromIndex(index); 3681ItemContainerGenerator.FindItem( 3813info.Refresh(ItemContainerGenerator);
System\Windows\Controls\ItemsPresenter.cs (1)
212generator = owner.ItemContainerGenerator;
System\Windows\Controls\ListBox.cs (3)
121if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 942return ItemContainerGenerator.IndexFromContainer(listItem); 947return ItemContainerGenerator.ContainerFromIndex(index) as ListBoxItem;
System\Windows\Controls\ListView.cs (1)
263ItemContainerGenerator.Refresh();
System\Windows\Controls\Menu.cs (1)
344MenuItem menuItem = ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\MenuItem.cs (2)
359object originalItem = parent.ItemContainerGenerator.ItemFromContainer(menuItem); 625MenuItem subItem = menuItem.ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\Panel.cs (2)
256IItemContainerGenerator generator = itemsControl.ItemContainerGenerator as IItemContainerGenerator; 578IItemContainerGenerator itemsOwnerGenerator = itemsOwner.ItemContainerGenerator;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
161cell = (DataGridCell)ItemContainerGenerator.ContainerFromIndex(i); 179cell = (DataGridCell)ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
265int index = ItemContainerGenerator.IndexFromContainer(container);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
689int index = dataGrid.ItemContainerGenerator.IndexFromContainer(row); 692return (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1);
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
49IItemContainerGenerator generator = dataGrid.ItemContainerGenerator as IItemContainerGenerator;
System\Windows\Controls\Primitives\MenuBase.cs (1)
688MenuItem mi = menu.ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\Primitives\Selector.cs (3)
46ItemContainerGenerator.StatusChanged += new EventHandler(OnGeneratorStatusChanged); 1481if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1870object data = itemsControl.ItemContainerGenerator.ItemFromContainer(o);
System\Windows\Controls\TabControl.cs (9)
82TabItem ti = tc.ItemContainerGenerator.ContainerFromIndex(i) as TabItem; 317ItemContainerGenerator.StatusChanged += new EventHandler(OnGeneratorStatusChanged); 419startIndex = ItemContainerGenerator.IndexFromContainer(ItemContainerGenerator.ContainerFromItem(SelectedItem)); 461TabItem tabItem = ItemContainerGenerator.ContainerFromIndex(index) as TabItem; 500if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 521tabItem = ItemContainerGenerator.ContainerFromIndex(SelectedIndex) as TabItem; 527!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem))) 529tabItem = ItemContainerGenerator.ContainerFromItem(selectedItem) as TabItem;
System\Windows\Controls\TreeView.cs (2)
350ChangeSelection(collapsed.ParentItemsControl.ItemContainerGenerator.ItemFromContainer(collapsed), collapsed, true); 463container = ItemContainerGenerator.ContainerFromIndex(0) as TreeViewItem;
System\Windows\Controls\TreeViewItem.cs (3)
933ItemContainerGenerator.RemoveAllInternal(true /*saveRecycleQueue*/); 1043subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i); 1047subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i);
System\Windows\Controls\VirtualizingStackPanel.cs (4)
4178parentItem = itemsControl.ItemContainerGenerator.ItemFromContainer(groupItem); 4185parentItem = parentItemsControl.ItemContainerGenerator.ItemFromContainer(itemsControl); 9125item = itemsControl.ItemContainerGenerator.ItemFromContainer(child); 9448CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.ItemContainerGenerator.ItemFromContainer(child), child);
System.Windows.Controls.Ribbon (103)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
176IItemContainerGenerator generator = groupHeaderItemsControl.ItemContainerGenerator as IItemContainerGenerator;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
71IItemContainerGenerator generator = itemsControl.ItemContainerGenerator as IItemContainerGenerator;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
278IItemContainerGenerator generator = tabHeaderItemsControl.ItemContainerGenerator as IItemContainerGenerator; 719if (groupHeaderItemsControl.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 724RibbonContextualTabGroup groupHeader = groupHeaderItemsControl.ItemContainerGenerator.ContainerFromIndex(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
68if (groupHeaderItemsControl.ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (17)
139ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 788int index = _tabHeaderItemsControl.ItemContainerGenerator.IndexFromContainer(tabHeader); 897if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1102if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated && 1278RibbonTab selectedTab = ribbon.ItemContainerGenerator.ContainerFromItem(ribbon.SelectedItem) as RibbonTab; 1504RibbonTab ribbonTab = ribbon.ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab; 1565RibbonTab tab = ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab; 1671Debug.Assert(ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated, "Expected: containers should be generated before calling this method."); 1675RibbonTab tab = ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab; 1736if (isMinimized && ribbon.ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) 1745if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1904selectedTab = ItemContainerGenerator.ContainerFromIndex(selectedIndex) as RibbonTab; 1950return (tabHeaderItemsControl.ItemContainerGenerator.ContainerFromIndex(selectedIndex) as RibbonTabHeader); 2002return tab.ItemContainerGenerator.IndexFromContainer(ribbonGroup); 2008RibbonGroup group = tab.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGroup; 2052RibbonControl ribbonControl = quickAccessToolBar.ItemContainerGenerator.ContainerFromIndex(index) as RibbonControl; 2076return quickAccessToolBar.ItemContainerGenerator.IndexFromContainer(ribbonControl);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
748matchedGalleryCategory.ItemContainerGenerator.ContainerFromItem(matchedItem) as RibbonGalleryItem; 1345firstGallery = ItemContainerGenerator.ContainerFromItem(item) as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
460RibbonTab tab = Ribbon.ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab; 524RibbonTab tab = ribbon.ItemContainerGenerator.ContainerFromIndex(i) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
259RibbonContextualTabGroup tabGroup = this.ItemContainerGenerator.ContainerFromIndex(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
87DependencyObject child = ItemContainerGenerator.ContainerFromIndex(i); 109RibbonControl ribbonControl = controlGroup.ItemContainerGenerator.ContainerFromIndex(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (25)
86this.ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 104Debug.Assert(_filterMenuButton.ItemContainerGenerator != null); 105_filterMenuButton.ItemContainerGenerator.StatusChanged -= OnFilterButtonItemContainerGeneratorStatusChanged; 112Debug.Assert(_filterMenuButton.ItemContainerGenerator != null); 113_filterMenuButton.ItemContainerGenerator.StatusChanged += new EventHandler(OnFilterButtonItemContainerGeneratorStatusChanged); 331if (this.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 347if (_filterMenuButton.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 351RibbonMenuItem filterItem = _filterMenuButton.ItemContainerGenerator.ContainerFromItem(filter) as RibbonMenuItem; 595RibbonGalleryCategory category = (RibbonGalleryCategory)ItemContainerGenerator.ContainerFromIndex(i); 976RibbonGalleryCategory category = ItemContainerGenerator.ContainerFromIndex(i) as RibbonGalleryCategory; 1024if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1046MoveCurrentTo(CollectionView, ItemContainerGenerator.ItemFromContainer(category)); 1166RibbonGalleryCategory category = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryCategory; 1387ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) 1394category = ItemContainerGenerator.ContainerFromItem(current) as RibbonGalleryCategory; 1400galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGalleryItem; 1425ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) 1434category = ItemContainerGenerator.ContainerFromItem(current) as RibbonGalleryCategory; 1443galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGalleryItem; 2156RibbonGalleryItem galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGalleryItem; 2221RibbonGalleryItem galleryItem = category.ItemContainerGenerator.ContainerFromIndex(index) as RibbonGalleryItem; 2332category = (RibbonGalleryCategory)this.ItemContainerGenerator.ContainerFromIndex(i); 2353Debug.Assert(gallery.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated); 2369category = (RibbonGalleryCategory)gallery.ItemContainerGenerator.ContainerFromIndex(i); 2532RibbonGalleryCategory category = (RibbonGalleryCategory)gallery.ItemContainerGenerator.ContainerFromIndex(index);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (4)
65this.ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 194if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 497if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 518RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryItem;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
190object item = category.ItemContainerGenerator.ItemFromContainer(galleryItem); 244object item = category.ItemContainerGenerator.ItemFromContainer(galleryItem);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
860RibbonControl ribbonControl = ItemContainerGenerator.ContainerFromIndex(i) as RibbonControl; 1031if (group.ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) 1063int index = ItemContainerGenerator.IndexFromContainer(element); 1219DependencyObject d = ItemContainerGenerator.ContainerFromIndex(i);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
567FrameworkElement container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 573container = itemsControl.ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 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; 778int startCatIndex = gallery.ItemContainerGenerator.IndexFromContainer(category); 794category = gallery.ItemContainerGenerator.ContainerFromIndex(catIndex) as RibbonGalleryCategory; 809startItemIndex = galleryItem != null ? category.ItemContainerGenerator.IndexFromContainer(galleryItem) : category.Items.Count - 1; 818highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as RibbonGalleryItem; 838startItemIndex = galleryItem != null ? category.ItemContainerGenerator.IndexFromContainer(galleryItem) : 0; 847highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(startItemIndex) as RibbonGalleryItem; 885highlightedGalleryItem = category.ItemContainerGenerator.ContainerFromIndex(itemIndex) as RibbonGalleryItem; 2489int itemIndex = parentItemsControl.ItemContainerGenerator.IndexFromContainer(menuItem); 2499UIElement container = parentItemsControl.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (6)
706ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 787int focusedIndex = ItemContainerGenerator.IndexFromContainer(e.OriginalSource as DependencyObject); 1216if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1218ItemContainerGenerator.StatusChanged -= OnItemContainerGeneratorStatusChanged; 1230if ((menuButton.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) && 1242if ((menuButton.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) &&
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (6)
344if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 346ItemContainerGenerator.StatusChanged -= OnItemContainerGeneratorStatusChanged; 358if ((menuItem.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) && 370if ((menuItem.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) && 656ItemContainerGenerator.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged); 830int focusedIndex = ItemContainerGenerator.IndexFromContainer(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
586RibbonControl ribbonControl = QuickAccessToolBar.ItemContainerGenerator.ContainerFromIndex(i) as RibbonControl; 612RibbonControl ribbonControl = QuickAccessToolBar.ItemContainerGenerator.ContainerFromIndex(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (5)
185int index = ribbon.ItemContainerGenerator.IndexFromContainer(this); 191return headerItemsControl.ItemContainerGenerator.ContainerFromIndex(index) as RibbonTabHeader; 435nextRibbonGroup = ItemContainerGenerator.ContainerFromIndex(nextGroupIndex) as RibbonGroup; 563RibbonGroup group = ItemContainerGenerator.ContainerFromIndex((_groupAutoResizeIndex--).Value) as RibbonGroup; 788RibbonGroup group = ItemContainerGenerator.ContainerFromIndex(i) as RibbonGroup;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
127int index = tabHeaderItemsControl.ItemContainerGenerator.IndexFromContainer(this); 128return ribbon.ItemContainerGenerator.ContainerFromIndex(index) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
135if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 159FrameworkElement element = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
142ItemsControl childItemsControl = _attachedTo.ItemContainerGenerator.ContainerFromIndex(currentIndex) as ItemsControl; 503ItemsControl childItemsControl = itemsControl.ItemContainerGenerator.ContainerFromItem(item) as ItemsControl;