28 references to ContainerFromItem
PresentationFramework (19)
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
43ListViewItem lvi = listview.ItemContainerGenerator.ContainerFromItem(item) as ListViewItem;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
97wrapper = owner.ItemContainerGenerator.ContainerFromItem(item) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
48StatusBarItem item = itemscontrol.ItemContainerGenerator.ContainerFromItem(obj) as StatusBarItem;
System\Windows\Controls\DataGrid.cs (5)
1303var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1323var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 1349var row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item); 3808DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.ContainerFromItem(CollectionView.NewItemPlaceholder); 7051DataGridRow row = (DataGridRow)ItemContainerGenerator.ContainerFromItem(item);
System\Windows\Controls\DataGridColumn.cs (1)
619DataGridRow row = _dataGridOwner.ItemContainerGenerator.ContainerFromItem(dataItem) as DataGridRow;
System\Windows\Controls\ItemsControl.cs (4)
2764object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.ContainerFromItem(startingItem) as FrameworkElement, 2919FrameworkElement container = ItemContainerGenerator.ContainerFromItem(item) as FrameworkElement; 3608container = ItemContainerGenerator.ContainerFromItem(info.Item); 3927Container = generator.ContainerFromItem(Item);
System\Windows\Controls\TabControl.cs (2)
419startIndex = ItemContainerGenerator.IndexFromContainer(ItemContainerGenerator.ContainerFromItem(SelectedItem)); 529tabItem = ItemContainerGenerator.ContainerFromItem(selectedItem) as TabItem;
System\Windows\Controls\VirtualizingStackPanel.cs (4)
1651GroupItem groupItem = generator.ContainerFromItem(cvg) as GroupItem; 1656groupItem = generator.ContainerFromItem(cvg) as GroupItem; 6325generator.IndexFromContainer(generator.ContainerFromItem(item)), 6356generator.IndexFromContainer(generator.ContainerFromItem(item)),
System.Windows.Controls.Ribbon (9)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1278RibbonTab selectedTab = ribbon.ItemContainerGenerator.ContainerFromItem(ribbon.SelectedItem) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
748matchedGalleryCategory.ItemContainerGenerator.ContainerFromItem(matchedItem) as RibbonGalleryItem; 1345firstGallery = ItemContainerGenerator.ContainerFromItem(item) as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
351RibbonMenuItem filterItem = _filterMenuButton.ItemContainerGenerator.ContainerFromItem(filter) as RibbonMenuItem; 1166RibbonGalleryCategory category = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryCategory; 1394category = ItemContainerGenerator.ContainerFromItem(current) as RibbonGalleryCategory; 1434category = ItemContainerGenerator.ContainerFromItem(current) as RibbonGalleryCategory;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
518RibbonGalleryItem galleryItem = this.ItemContainerGenerator.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryItem;
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
503ItemsControl childItemsControl = itemsControl.ItemContainerGenerator.ContainerFromItem(item) as ItemsControl;