78 references to ContainerFromIndex
Microsoft.VisualStudio.LanguageServices (4)
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
206
if (Members.ItemContainerGenerator.
ContainerFromIndex
(Members.SelectedIndex) is not DataGridRow row)
209
row = Members.ItemContainerGenerator.
ContainerFromIndex
(Members.SelectedIndex) as DataGridRow;
PickMembers\PickMembersDialog.xaml.cs (2)
110
if (Members.ItemContainerGenerator.
ContainerFromIndex
(Members.SelectedIndex) is not ListViewItem row)
113
row = Members.ItemContainerGenerator.
ContainerFromIndex
(Members.SelectedIndex) as ListViewItem;
PresentationFramework (32)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
211
ListViewItem lvi = _listview.ItemContainerGenerator.
ContainerFromIndex
(row) as ListViewItem;
221
lvi = _listview.ItemContainerGenerator.
ContainerFromIndex
(row) as ListViewItem;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
188
UIElement uiElement = owner.ItemContainerGenerator.
ContainerFromIndex
(i) as UIElement;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
86
TreeViewItem treeViewItem = owner.ItemContainerGenerator.
ContainerFromIndex
(i) as TreeViewItem;
System\Windows\Controls\ComboBox.cs (1)
1581
DependencyObject container = ItemContainerGenerator.
ContainerFromIndex
(i);
System\Windows\Controls\DataGrid.cs (4)
457
return (DataGridColumnHeader)ColumnHeadersPresenter.ItemContainerGenerator.
ContainerFromIndex
(columnIndex);
1813
DataGridRow row = (DataGridRow)ItemContainerGenerator.
ContainerFromIndex
(info.Index);
6433
row = ItemContainerGenerator.
ContainerFromIndex
(i) as DataGridRow;
6482
row = ItemContainerGenerator.
ContainerFromIndex
(i) as DataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (1)
970
UIElement child = generator.
ContainerFromIndex
(columnIndex) as UIElement;
System\Windows\Controls\DataGridRow.cs (1)
1362
return cellsPresenter.ItemContainerGenerator.
ContainerFromIndex
(index) as DataGridCell;
System\Windows\Controls\ItemContainerGenerator.cs (1)
932
container = groupItem.Generator.
ContainerFromIndex
(subIndex);
System\Windows\Controls\ItemsControl.cs (7)
2609
FrameworkElement container = ItemContainerGenerator.
ContainerFromIndex
(startIndex) as FrameworkElement;
2677
container = ItemContainerGenerator.
ContainerFromIndex
(index) as FrameworkElement;
2687
container = ItemContainerGenerator.
ContainerFromIndex
(index) as FrameworkElement;
3594
return (index >= 0) ? NewItemInfo(Items[index], ItemContainerGenerator.
ContainerFromIndex
(index), index)
3612
container = ItemContainerGenerator.
ContainerFromIndex
(info.Index);
3684
container = ItemContainerGenerator.
ContainerFromIndex
(index);
3946
Container = generator.
ContainerFromIndex
(Index);
System\Windows\Controls\ListBox.cs (1)
953
return ItemContainerGenerator.
ContainerFromIndex
(index) as ListBoxItem;
System\Windows\Controls\Menu.cs (1)
354
MenuItem menuItem = ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
System\Windows\Controls\MenuItem.cs (1)
635
MenuItem subItem = menuItem.ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
166
cell = (DataGridCell)ItemContainerGenerator.
ContainerFromIndex
(i);
184
cell = (DataGridCell)ItemContainerGenerator.
ContainerFromIndex
(i);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
697
return (DataGridRow)dataGrid.ItemContainerGenerator.
ContainerFromIndex
(index - 1);
System\Windows\Controls\Primitives\MenuBase.cs (1)
697
MenuItem mi = menu.ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
System\Windows\Controls\TabControl.cs (3)
92
TabItem ti = tc.ItemContainerGenerator.
ContainerFromIndex
(i) as TabItem;
471
TabItem tabItem = ItemContainerGenerator.
ContainerFromIndex
(index) as TabItem;
531
tabItem = ItemContainerGenerator.
ContainerFromIndex
(SelectedIndex) as TabItem;
System\Windows\Controls\TreeView.cs (1)
468
container = ItemContainerGenerator.
ContainerFromIndex
(0) as TreeViewItem;
System\Windows\Controls\TreeViewItem.cs (2)
1047
subitem = (TreeViewItem)item.ItemContainerGenerator.
ContainerFromIndex
(i);
1051
subitem = (TreeViewItem)item.ItemContainerGenerator.
ContainerFromIndex
(i);
System.Windows.Controls.Ribbon (42)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
727
RibbonContextualTabGroup groupHeader = groupHeaderItemsControl.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
1507
RibbonTab ribbonTab = ribbon.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
1568
RibbonTab tab = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
1678
RibbonTab tab = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
1907
selectedTab = ItemContainerGenerator.
ContainerFromIndex
(selectedIndex) as RibbonTab;
1953
return (tabHeaderItemsControl.ItemContainerGenerator.
ContainerFromIndex
(selectedIndex) as RibbonTabHeader);
2011
RibbonGroup group = tab.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGroup;
2055
RibbonControl ribbonControl = quickAccessToolBar.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
462
RibbonTab tab = Ribbon.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
526
RibbonTab tab = ribbon.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
261
RibbonContextualTabGroup tabGroup = this.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
90
DependencyObject child = ItemContainerGenerator.
ContainerFromIndex
(i);
112
RibbonControl ribbonControl = controlGroup.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (9)
597
RibbonGalleryCategory category = (RibbonGalleryCategory)ItemContainerGenerator.
ContainerFromIndex
(i);
978
RibbonGalleryCategory category = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonGalleryCategory;
1402
galleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGalleryItem;
1445
galleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGalleryItem;
2158
RibbonGalleryItem galleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGalleryItem;
2223
RibbonGalleryItem galleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGalleryItem;
2334
category = (RibbonGalleryCategory)this.ItemContainerGenerator.
ContainerFromIndex
(i);
2371
category = (RibbonGalleryCategory)gallery.ItemContainerGenerator.
ContainerFromIndex
(i);
2534
RibbonGalleryCategory category = (RibbonGalleryCategory)gallery.ItemContainerGenerator.
ContainerFromIndex
(index);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
863
RibbonControl ribbonControl = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonControl;
1222
DependencyObject d = ItemContainerGenerator.
ContainerFromIndex
(i);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (9)
572
FrameworkElement container = itemsControl.ItemContainerGenerator.
ContainerFromIndex
(startIndex) as FrameworkElement;
578
container = itemsControl.ItemContainerGenerator.
ContainerFromIndex
(startIndex) as FrameworkElement;
775
category = gallery.Items.Count > 0 ? gallery.ItemContainerGenerator.
ContainerFromIndex
(0) as RibbonGalleryCategory : null;
776
galleryItem = category != null && category.Items.Count > 0 ? category.ItemContainerGenerator.
ContainerFromIndex
(0) as RibbonGalleryItem : null;
799
category = gallery.ItemContainerGenerator.
ContainerFromIndex
(catIndex) as RibbonGalleryCategory;
823
highlightedGalleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(startItemIndex) as RibbonGalleryItem;
852
highlightedGalleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(startItemIndex) as RibbonGalleryItem;
890
highlightedGalleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(itemIndex) as RibbonGalleryItem;
2504
UIElement container = parentItemsControl.ItemContainerGenerator.
ContainerFromIndex
(i) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
591
RibbonControl ribbonControl = QuickAccessToolBar.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonControl;
617
RibbonControl ribbonControl = QuickAccessToolBar.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (4)
193
return headerItemsControl.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonTabHeader;
437
nextRibbonGroup = ItemContainerGenerator.
ContainerFromIndex
(nextGroupIndex) as RibbonGroup;
565
RibbonGroup group = ItemContainerGenerator.
ContainerFromIndex
((_groupAutoResizeIndex--).Value) as RibbonGroup;
790
RibbonGroup group = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonGroup;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
130
return ribbon.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
161
FrameworkElement element = ItemContainerGenerator.
ContainerFromIndex
(index) as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
145
ItemsControl childItemsControl = _attachedTo.ItemContainerGenerator.
ContainerFromIndex
(currentIndex) as ItemsControl;