78 references to ContainerFromIndex
Microsoft.VisualStudio.LanguageServices (4)
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
207
if (Members.ItemContainerGenerator.
ContainerFromIndex
(Members.SelectedIndex) is not DataGridRow row)
210
row = Members.ItemContainerGenerator.
ContainerFromIndex
(Members.SelectedIndex) as DataGridRow;
PickMembers\PickMembersDialog.xaml.cs (2)
111
if (Members.ItemContainerGenerator.
ContainerFromIndex
(Members.SelectedIndex) is not ListViewItem row)
114
row = Members.ItemContainerGenerator.
ContainerFromIndex
(Members.SelectedIndex) as ListViewItem;
PresentationFramework (32)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
199
ListViewItem lvi = _listview.ItemContainerGenerator.
ContainerFromIndex
(row) as ListViewItem;
209
lvi = _listview.ItemContainerGenerator.
ContainerFromIndex
(row) as ListViewItem;
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
175
UIElement uiElement = owner.ItemContainerGenerator.
ContainerFromIndex
(i) as UIElement;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
73
TreeViewItem treeViewItem = owner.ItemContainerGenerator.
ContainerFromIndex
(i) as TreeViewItem;
System\Windows\Controls\ComboBox.cs (1)
1571
DependencyObject container = ItemContainerGenerator.
ContainerFromIndex
(i);
System\Windows\Controls\DataGrid.cs (4)
454
return (DataGridColumnHeader)ColumnHeadersPresenter.ItemContainerGenerator.
ContainerFromIndex
(columnIndex);
1810
DataGridRow row = (DataGridRow)ItemContainerGenerator.
ContainerFromIndex
(info.Index);
6430
row = ItemContainerGenerator.
ContainerFromIndex
(i) as DataGridRow;
6479
row = ItemContainerGenerator.
ContainerFromIndex
(i) as DataGridRow;
System\Windows\Controls\DataGridCellsPanel.cs (1)
966
UIElement child = generator.
ContainerFromIndex
(columnIndex) as UIElement;
System\Windows\Controls\DataGridRow.cs (1)
1358
return cellsPresenter.ItemContainerGenerator.
ContainerFromIndex
(index) as DataGridCell;
System\Windows\Controls\ItemContainerGenerator.cs (1)
926
container = groupItem.Generator.
ContainerFromIndex
(subIndex);
System\Windows\Controls\ItemsControl.cs (7)
2600
FrameworkElement container = ItemContainerGenerator.
ContainerFromIndex
(startIndex) as FrameworkElement;
2668
container = ItemContainerGenerator.
ContainerFromIndex
(index) as FrameworkElement;
2678
container = ItemContainerGenerator.
ContainerFromIndex
(index) as FrameworkElement;
3585
return (index >= 0) ? NewItemInfo(Items[index], ItemContainerGenerator.
ContainerFromIndex
(index), index)
3603
container = ItemContainerGenerator.
ContainerFromIndex
(info.Index);
3675
container = ItemContainerGenerator.
ContainerFromIndex
(index);
3937
Container = generator.
ContainerFromIndex
(Index);
System\Windows\Controls\ListBox.cs (1)
947
return ItemContainerGenerator.
ContainerFromIndex
(index) as ListBoxItem;
System\Windows\Controls\Menu.cs (1)
344
MenuItem menuItem = ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
System\Windows\Controls\MenuItem.cs (1)
625
MenuItem subItem = menuItem.ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
161
cell = (DataGridCell)ItemContainerGenerator.
ContainerFromIndex
(i);
179
cell = (DataGridCell)ItemContainerGenerator.
ContainerFromIndex
(i);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
692
return (DataGridRow)dataGrid.ItemContainerGenerator.
ContainerFromIndex
(index - 1);
System\Windows\Controls\Primitives\MenuBase.cs (1)
688
MenuItem mi = menu.ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
System\Windows\Controls\TabControl.cs (3)
82
TabItem ti = tc.ItemContainerGenerator.
ContainerFromIndex
(i) as TabItem;
461
TabItem tabItem = ItemContainerGenerator.
ContainerFromIndex
(index) as TabItem;
521
tabItem = ItemContainerGenerator.
ContainerFromIndex
(SelectedIndex) as TabItem;
System\Windows\Controls\TreeView.cs (1)
463
container = ItemContainerGenerator.
ContainerFromIndex
(0) as TreeViewItem;
System\Windows\Controls\TreeViewItem.cs (2)
1043
subitem = (TreeViewItem)item.ItemContainerGenerator.
ContainerFromIndex
(i);
1047
subitem = (TreeViewItem)item.ItemContainerGenerator.
ContainerFromIndex
(i);
System.Windows.Controls.Ribbon (42)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
724
RibbonContextualTabGroup groupHeader = groupHeaderItemsControl.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (7)
1504
RibbonTab ribbonTab = ribbon.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
1565
RibbonTab tab = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
1675
RibbonTab tab = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
1904
selectedTab = ItemContainerGenerator.
ContainerFromIndex
(selectedIndex) as RibbonTab;
1950
return (tabHeaderItemsControl.ItemContainerGenerator.
ContainerFromIndex
(selectedIndex) as RibbonTabHeader);
2008
RibbonGroup group = tab.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGroup;
2052
RibbonControl ribbonControl = quickAccessToolBar.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
460
RibbonTab tab = Ribbon.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
524
RibbonTab tab = ribbon.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
259
RibbonContextualTabGroup tabGroup = this.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
87
DependencyObject child = ItemContainerGenerator.
ContainerFromIndex
(i);
109
RibbonControl ribbonControl = controlGroup.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (9)
595
RibbonGalleryCategory category = (RibbonGalleryCategory)ItemContainerGenerator.
ContainerFromIndex
(i);
976
RibbonGalleryCategory category = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonGalleryCategory;
1400
galleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGalleryItem;
1443
galleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGalleryItem;
2156
RibbonGalleryItem galleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGalleryItem;
2221
RibbonGalleryItem galleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonGalleryItem;
2332
category = (RibbonGalleryCategory)this.ItemContainerGenerator.
ContainerFromIndex
(i);
2369
category = (RibbonGalleryCategory)gallery.ItemContainerGenerator.
ContainerFromIndex
(i);
2532
RibbonGalleryCategory category = (RibbonGalleryCategory)gallery.ItemContainerGenerator.
ContainerFromIndex
(index);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
860
RibbonControl ribbonControl = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonControl;
1219
DependencyObject d = ItemContainerGenerator.
ContainerFromIndex
(i);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (9)
567
FrameworkElement container = itemsControl.ItemContainerGenerator.
ContainerFromIndex
(startIndex) as FrameworkElement;
573
container = itemsControl.ItemContainerGenerator.
ContainerFromIndex
(startIndex) as FrameworkElement;
770
category = gallery.Items.Count > 0 ? gallery.ItemContainerGenerator.
ContainerFromIndex
(0) as RibbonGalleryCategory : null;
771
galleryItem = category != null && category.Items.Count > 0 ? category.ItemContainerGenerator.
ContainerFromIndex
(0) as RibbonGalleryItem : null;
794
category = gallery.ItemContainerGenerator.
ContainerFromIndex
(catIndex) as RibbonGalleryCategory;
818
highlightedGalleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(startItemIndex) as RibbonGalleryItem;
847
highlightedGalleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(startItemIndex) as RibbonGalleryItem;
885
highlightedGalleryItem = category.ItemContainerGenerator.
ContainerFromIndex
(itemIndex) as RibbonGalleryItem;
2499
UIElement container = parentItemsControl.ItemContainerGenerator.
ContainerFromIndex
(i) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
586
RibbonControl ribbonControl = QuickAccessToolBar.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonControl;
612
RibbonControl ribbonControl = QuickAccessToolBar.ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (4)
191
return headerItemsControl.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonTabHeader;
435
nextRibbonGroup = ItemContainerGenerator.
ContainerFromIndex
(nextGroupIndex) as RibbonGroup;
563
RibbonGroup group = ItemContainerGenerator.
ContainerFromIndex
((_groupAutoResizeIndex--).Value) as RibbonGroup;
788
RibbonGroup group = ItemContainerGenerator.
ContainerFromIndex
(i) as RibbonGroup;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
128
return ribbon.ItemContainerGenerator.
ContainerFromIndex
(index) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
159
FrameworkElement element = ItemContainerGenerator.
ContainerFromIndex
(index) as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
142
ItemsControl childItemsControl = _attachedTo.ItemContainerGenerator.
ContainerFromIndex
(currentIndex) as ItemsControl;