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