28 references to ContainerFromItem
PresentationFramework (19)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
55ListViewItem lvi = listview.ItemContainerGenerator.ContainerFromItem(item) as ListViewItem;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
107wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
58StatusBarItem item = itemscontrol.ItemContainerGenerator.ContainerFromItem(obj) as StatusBarItem;
System\Windows\Controls\DataGrid.cs (5)
1306var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1326var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1352var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 3811DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 7054DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item);
System\Windows\Controls\DataGridColumn.cs (1)
622DataGridRow row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as DataGridRow;
System\Windows\Controls\ItemsControl.cs (4)
2773object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2928FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 3617container = ItemContainerGenerator.ContainerFromItem(info.Item); 3936Container = generator.ContainerFromItem(Item);
System\Windows\Controls\TabControl.cs (2)
429startIndex = ItemContainerGenerator.IndexFromContainer(ItemContainerGenerator.ContainerFromItem(SelectedItem)); 539tabItem = ItemContainerGenerator.ContainerFromItem(selectedItem) as TabItem;
System\Windows\Controls\VirtualizingStackPanel.cs (4)
1656GroupItem groupItem = generator.ContainerFromItem(cvg) as GroupItem; 1661groupItem = generator.ContainerFromItem(cvg) as GroupItem; 6330generator.IndexFromContainer(generator.ContainerFromItem(item)), 6361generator.IndexFromContainer(generator.ContainerFromItem(item)),
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1281RibbonTab selectedTab = ribbon.ItemContainerGenerator.ContainerFromItem(ribbon.SelectedItem) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
750matchedGalleryCategory.ItemContainerGenerator.ContainerFromItem(matchedItem) as RibbonGalleryItem; 1347firstGallery = ItemContainerGenerator.ContainerFromItem(item) as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
353RibbonMenuItem filterItem = _filterMenuButton.ItemContainerGenerator.ContainerFromItem(filter) as RibbonMenuItem; 1168RibbonGalleryCategory category = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryCategory; 1396category = ItemContainerGenerator.ContainerFromItem(current) as RibbonGalleryCategory; 1436category = ItemContainerGenerator.ContainerFromItem(current) as RibbonGalleryCategory;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
523RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryItem;
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
506ItemsControl childItemsControl = itemsControl.ItemContainerGenerator.ContainerFromItem(item) as ItemsControl;