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