115 references to ItemContainerGenerator
PresentationFramework (96)
src\Framework\System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
127if (owner.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
211ListViewItem lvi = _listview.ItemContainerGenerator.ContainerFromIndex(row) as ListViewItem; 221lvi = _listview.ItemContainerGenerator.ContainerFromIndex(row) as ListViewItem;
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
51ListViewItem lvi = listview.ItemContainerGenerator.ContainerFromItem(item) as ListViewItem;
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
204object item = itemsControl.ItemContainerGenerator.ItemFromContainer(child); 290CollectionViewGroupInternal cvg = itemsControl.ItemContainerGenerator.ItemFromContainer(Owner) as CollectionViewGroupInternal;
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
104wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement; 699if (parent.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
162dataItem = (d != null) ? owner.ItemContainerGenerator.ItemFromContainer(d) : null; 782((IItemContainerGenerator)_itemsControl.ItemContainerGenerator).PrepareItemContainer(_container);
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
163UIElement uiElement = owner.ItemContainerGenerator.ContainerFromIndex(i) as UIElement;
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
55StatusBarItem item = itemscontrol.ItemContainerGenerator.ContainerFromItem(obj) as StatusBarItem;
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
83TreeViewItem treeViewItem = owner.ItemContainerGenerator.ContainerFromIndex(i) as TreeViewItem;
src\Framework\System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (1)
322if (parent.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
src\Framework\System\Windows\Controls\ComboBox.cs (2)
1264object item = ItemContainerGenerator.ItemFromContainer(comboBoxItem); 1583DependencyObject container = ItemContainerGenerator.ContainerFromIndex(i);
src\Framework\System\Windows\Controls\DataGrid.cs (16)
456if (ColumnHeadersPresenter != null && ColumnHeadersPresenter.ItemContainerGenerator != null) 458return (DataGridColumnHeader)ColumnHeadersPresenter.ItemContainerGenerator.ContainerFromIndex(columnIndex); 618foreach (DependencyObject container in ItemContainerGenerator.RecyclableContainers) 1307var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1327var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1353var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1554if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1591if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1817DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromIndex(info.Index); 2158newItemIndex = ItemContainerGenerator.IndexFromContainer(cell.RowOwner); 3104(currentIndex < 0 || currentIndex == ItemContainerGenerator.IndexFromContainer(row)) 3816DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 5636CollectionViewGroupInternal cvg = ItemContainerGenerator.ItemFromContainer(currentGroupItem) as CollectionViewGroupInternal; 6438row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 6487row = ItemContainerGenerator.ContainerFromIndex(i) as DataGridRow; 7057DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item);
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
81PrepareCell(item, ownerRow, cellsPresenter.ItemContainerGenerator.IndexFromContainer(this));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (2)
894ItemContainerGenerator generator = parentPresenter.ItemContainerGenerator; 1793IItemContainerGenerator generator = parentPresenter.ItemContainerGenerator as IItemContainerGenerator;
src\Framework\System\Windows\Controls\DataGridColumn.cs (1)
626DataGridRow row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as DataGridRow;
src\Framework\System\Windows\Controls\DataGridRow.cs (2)
1320return dataGridOwner.ItemContainerGenerator.IndexFromContainer(this); 1363return cellsPresenter.ItemContainerGenerator.ContainerFromIndex(index) as DataGridCell;
src\Framework\System\Windows\Controls\GroupItem.cs (1)
69Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.ItemContainerGenerator.ItemFromContainer(this));
src\Framework\System\Windows\Controls\ItemsControl.cs (19)
905ItemContainerGenerator.OnPanelChanged(); 1078ItemContainerGenerator.ChangeAlternationCount(); 2612FrameworkElement container = ItemContainerGenerator.ContainerFromIndex(startIndex) as FrameworkElement; 2680container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2690container = ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement; 2776object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2931FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 3140object item = itemsControl.ItemContainerGenerator.ItemFromContainer(focusedElement); 3383item = itemsControl.ItemContainerGenerator.ItemFromContainer(element); 3474object item = ItemContainerGenerator.ItemFromContainer(container); 3513return new ItemInfo(item, container, index).Refresh(ItemContainerGenerator); 3519return NewItemInfo(ItemContainerGenerator.ItemFromContainer(container), container, ItemContainerGenerator.IndexFromContainer(container)); 3525return (index >= 0) ? NewItemInfo(Items[index], ItemContainerGenerator.ContainerFromIndex(index), index) 3543container = ItemContainerGenerator.ContainerFromIndex(info.Index); 3548container = ItemContainerGenerator.ContainerFromItem(info.Item); 3615container = ItemContainerGenerator.ContainerFromIndex(index); 3621ItemContainerGenerator.FindItem( 3754info.Refresh(ItemContainerGenerator);
src\Framework\System\Windows\Controls\ItemsPresenter.cs (1)
218generator = owner.ItemContainerGenerator;
src\Framework\System\Windows\Controls\ListBox.cs (3)
125if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 905return ItemContainerGenerator.IndexFromContainer(listItem); 910return ItemContainerGenerator.ContainerFromIndex(index) as ListBoxItem;
src\Framework\System\Windows\Controls\ListView.cs (1)
265ItemContainerGenerator.Refresh();
src\Framework\System\Windows\Controls\Menu.cs (1)
380MenuItem menuItem = ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
src\Framework\System\Windows\Controls\MenuItem.cs (2)
372object originalItem = parent.ItemContainerGenerator.ItemFromContainer(menuItem); 630MenuItem subItem = menuItem.ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
src\Framework\System\Windows\Controls\Panel.cs (2)
267IItemContainerGenerator generator = itemsControl.ItemContainerGenerator as IItemContainerGenerator; 589IItemContainerGenerator itemsOwnerGenerator = itemsOwner.ItemContainerGenerator;
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
167cell = (DataGridCell)ItemContainerGenerator.ContainerFromIndex(i); 185cell = (DataGridCell)ItemContainerGenerator.ContainerFromIndex(i);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
270int index = ItemContainerGenerator.IndexFromContainer(container);
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
695int index = dataGrid.ItemContainerGenerator.IndexFromContainer(row); 698return (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(index - 1);
src\Framework\System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
60IItemContainerGenerator generator = dataGrid.ItemContainerGenerator as IItemContainerGenerator;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
708MenuItem mi = menu.ItemContainerGenerator.ContainerFromIndex(i) as MenuItem;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
56ItemContainerGenerator.StatusChanged += new EventHandler(OnGeneratorStatusChanged); 1509if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 1899object data = itemsControl.ItemContainerGenerator.ItemFromContainer(o);
src\Framework\System\Windows\Controls\TabControl.cs (9)
93TabItem ti = tc.ItemContainerGenerator.ContainerFromIndex(i) as TabItem; 328ItemContainerGenerator.StatusChanged += new EventHandler(OnGeneratorStatusChanged); 430startIndex = ItemContainerGenerator.IndexFromContainer(ItemContainerGenerator.ContainerFromItem(SelectedItem)); 472TabItem tabItem = ItemContainerGenerator.ContainerFromIndex(index) as TabItem; 511if (ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated) 532tabItem = ItemContainerGenerator.ContainerFromIndex(SelectedIndex) as TabItem; 538!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem))) 540tabItem = ItemContainerGenerator.ContainerFromItem(selectedItem) as TabItem;
src\Framework\System\Windows\Controls\TreeView.cs (2)
356ChangeSelection(collapsed.ParentItemsControl.ItemContainerGenerator.ItemFromContainer(collapsed), collapsed, true); 469container = ItemContainerGenerator.ContainerFromIndex(0) as TreeViewItem;
src\Framework\System\Windows\Controls\TreeViewItem.cs (3)
936ItemContainerGenerator.RemoveAllInternal(true /*saveRecycleQueue*/); 1047subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i); 1051subitem = (TreeViewItem)item.ItemContainerGenerator.ContainerFromIndex(i);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
4101parentItem = itemsControl.ItemContainerGenerator.ItemFromContainer(groupItem); 4108parentItem = parentItemsControl.ItemContainerGenerator.ItemFromContainer(itemsControl); 8972item = itemsControl.ItemContainerGenerator.ItemFromContainer(child); 9299CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.ItemContainerGenerator.ItemFromContainer(child), child);
System.Activities.Presentation (19)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (1)
148PropertyContainer propertyContainer = properties.ItemContainerGenerator.ContainerFromIndex(i) as PropertyContainer;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (1)
57_control.ItemContainerGenerator.ContainerFromItem(item) as CiderCategoryContainer,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\SubPropertyEditorAutomationPeer.cs (1)
111PropertyContainer propertyContainer = properties.ItemContainerGenerator.ContainerFromIndex(i) as PropertyContainer;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (3)
852CiderCategoryContainer categoryContainer = this.ItemContainerGenerator.ContainerFromItem(parentCategory) as CiderCategoryContainer; 897CiderCategoryContainer categoryContainer = this.ItemContainerGenerator.ContainerFromItem(category) as CiderCategoryContainer; 922CiderCategoryContainer categoryContainer = this.ItemContainerGenerator.ContainerFromItem(category) as CiderCategoryContainer;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryContainer.cs (4)
237PropertyContainer propertyContainer = this.BasicPropertyContainersContainer.ItemContainerGenerator.ContainerFromItem(property) as PropertyContainer; 246PropertyContainer propertyContainer = this.AdvancedPropertyContainersContainer.ItemContainerGenerator.ContainerFromItem(property) as PropertyContainer; 278UIElement categoryEditor = this.BasicCategoryEditorsContainer.ItemContainerGenerator.ContainerFromItem(editor) as UIElement; 287UIElement categoryEditor = this.AdvancedCategoryEditorsContainer.ItemContainerGenerator.ContainerFromItem(editor) as UIElement;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (1)
104this.ItemContainerGenerator.ContainerFromIndex(0) as ComboBoxItem;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (1)
429return subPropertyListControl.ItemContainerGenerator.ContainerFromItem(property) as PropertyContainer;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (5)
716dataGrid.SelectedItems.Add(dataGrid.ItemContainerGenerator.ItemFromContainer(row)); 1000DataGridCell cell = (DataGridCell)presenter.ItemContainerGenerator.ContainerFromIndex(column); 1006cell = (DataGridCell)presenter.ItemContainerGenerator.ContainerFromIndex(column); 1043DataGridRow row = (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(index); 1050row = (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(index);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
941UIElement first = (UIElement)breadcrumbItems.ItemContainerGenerator.ContainerFromIndex(0); 943UIElement last = (UIElement)breadcrumbItems.ItemContainerGenerator.ContainerFromIndex(breadcrumbItems.Items.Count - 1);