41 references to ContainerFromIndex
PresentationFramework (32)
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
211
ListViewItem lvi = _listview.ItemContainerGenerator.
ContainerFromIndex
(row) as ListViewItem;
221
lvi = _listview.ItemContainerGenerator.
ContainerFromIndex
(row) as ListViewItem;
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
163
UIElement uiElement = owner.ItemContainerGenerator.
ContainerFromIndex
(i) as UIElement;
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
83
TreeViewItem treeViewItem = owner.ItemContainerGenerator.
ContainerFromIndex
(i) as TreeViewItem;
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1583
DependencyObject container = ItemContainerGenerator.
ContainerFromIndex
(i);
src\Framework\System\Windows\Controls\DataGrid.cs (4)
458
return (DataGridColumnHeader)ColumnHeadersPresenter.ItemContainerGenerator.
ContainerFromIndex
(columnIndex);
1817
DataGridRow row = (DataGridRow)ItemContainerGenerator.
ContainerFromIndex
(info.Index);
6438
row = ItemContainerGenerator.
ContainerFromIndex
(i) as DataGridRow;
6487
row = ItemContainerGenerator.
ContainerFromIndex
(i) as DataGridRow;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
972
UIElement child = generator.
ContainerFromIndex
(columnIndex) as UIElement;
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
1363
return cellsPresenter.ItemContainerGenerator.
ContainerFromIndex
(index) as DataGridCell;
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (1)
940
container = groupItem.Generator.
ContainerFromIndex
(subIndex);
src\Framework\System\Windows\Controls\ItemsControl.cs (7)
2612
FrameworkElement container = ItemContainerGenerator.
ContainerFromIndex
(startIndex) as FrameworkElement;
2680
container = ItemContainerGenerator.
ContainerFromIndex
(index) as FrameworkElement;
2690
container = ItemContainerGenerator.
ContainerFromIndex
(index) as FrameworkElement;
3525
return (index >= 0) ? NewItemInfo(Items[index], ItemContainerGenerator.
ContainerFromIndex
(index), index)
3543
container = ItemContainerGenerator.
ContainerFromIndex
(info.Index);
3615
container = ItemContainerGenerator.
ContainerFromIndex
(index);
3878
Container = generator.
ContainerFromIndex
(Index);
src\Framework\System\Windows\Controls\ListBox.cs (1)
910
return ItemContainerGenerator.
ContainerFromIndex
(index) as ListBoxItem;
src\Framework\System\Windows\Controls\Menu.cs (1)
380
MenuItem menuItem = ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
src\Framework\System\Windows\Controls\MenuItem.cs (1)
630
MenuItem subItem = menuItem.ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
167
cell = (DataGridCell)ItemContainerGenerator.
ContainerFromIndex
(i);
185
cell = (DataGridCell)ItemContainerGenerator.
ContainerFromIndex
(i);
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
698
return (DataGridRow)dataGrid.ItemContainerGenerator.
ContainerFromIndex
(index - 1);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
708
MenuItem mi = menu.ItemContainerGenerator.
ContainerFromIndex
(i) as MenuItem;
src\Framework\System\Windows\Controls\TabControl.cs (3)
93
TabItem ti = tc.ItemContainerGenerator.
ContainerFromIndex
(i) as TabItem;
472
TabItem tabItem = ItemContainerGenerator.
ContainerFromIndex
(index) as TabItem;
532
tabItem = ItemContainerGenerator.
ContainerFromIndex
(SelectedIndex) as TabItem;
src\Framework\System\Windows\Controls\TreeView.cs (1)
469
container = ItemContainerGenerator.
ContainerFromIndex
(0) as TreeViewItem;
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
1047
subitem = (TreeViewItem)item.ItemContainerGenerator.
ContainerFromIndex
(i);
1051
subitem = (TreeViewItem)item.ItemContainerGenerator.
ContainerFromIndex
(i);
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (1)
148
PropertyContainer propertyContainer = properties.ItemContainerGenerator.
ContainerFromIndex
(i) as PropertyContainer;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\SubPropertyEditorAutomationPeer.cs (1)
111
PropertyContainer propertyContainer = properties.ItemContainerGenerator.
ContainerFromIndex
(i) as PropertyContainer;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (1)
104
this.ItemContainerGenerator.
ContainerFromIndex
(0) as ComboBoxItem;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (4)
1000
DataGridCell cell = (DataGridCell)presenter.ItemContainerGenerator.
ContainerFromIndex
(column);
1006
cell = (DataGridCell)presenter.ItemContainerGenerator.
ContainerFromIndex
(column);
1043
DataGridRow row = (DataGridRow)dataGrid.ItemContainerGenerator.
ContainerFromIndex
(index);
1050
row = (DataGridRow)dataGrid.ItemContainerGenerator.
ContainerFromIndex
(index);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
941
UIElement first = (UIElement)breadcrumbItems.ItemContainerGenerator.
ContainerFromIndex
(0);
943
UIElement last = (UIElement)breadcrumbItems.ItemContainerGenerator.
ContainerFromIndex
(breadcrumbItems.Items.Count - 1);