28 references to ContainerFromItem
PresentationFramework (19)
src\Framework\System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (1)
51
ListViewItem lvi = listview.ItemContainerGenerator.
ContainerFromItem
(item) as ListViewItem;
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
104
wrapper = owner.ItemContainerGenerator.
ContainerFromItem
(item) as UIElement;
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
55
StatusBarItem item = itemscontrol.ItemContainerGenerator.
ContainerFromItem
(obj) as StatusBarItem;
src\Framework\System\Windows\Controls\DataGrid.cs (5)
1307
var row = (DataGridRow)ItemContainerGenerator.
ContainerFromItem
(item);
1327
var row = (DataGridRow)ItemContainerGenerator.
ContainerFromItem
(item);
1353
var row = (DataGridRow)ItemContainerGenerator.
ContainerFromItem
(item);
3816
DataGridRow newItemPlaceholderRow = (DataGridRow)ItemContainerGenerator.
ContainerFromItem
(CollectionView.NewItemPlaceholder);
7057
DataGridRow row = (DataGridRow)ItemContainerGenerator.
ContainerFromItem
(item);
src\Framework\System\Windows\Controls\DataGridColumn.cs (1)
626
DataGridRow row = _dataGridOwner.ItemContainerGenerator.
ContainerFromItem
(dataItem) as DataGridRow;
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
2776
object firstItem = GetFirstItemOnCurrentPage(ItemContainerGenerator.
ContainerFromItem
(startingItem) as FrameworkElement,
2931
FrameworkElement container = ItemContainerGenerator.
ContainerFromItem
(item) as FrameworkElement;
3548
container = ItemContainerGenerator.
ContainerFromItem
(info.Item);
3868
Container = generator.
ContainerFromItem
(Item);
src\Framework\System\Windows\Controls\TabControl.cs (2)
430
startIndex = ItemContainerGenerator.IndexFromContainer(ItemContainerGenerator.
ContainerFromItem
(SelectedItem));
540
tabItem = ItemContainerGenerator.
ContainerFromItem
(selectedItem) as TabItem;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
1607
GroupItem groupItem = generator.
ContainerFromItem
(cvg) as GroupItem;
1612
groupItem = generator.
ContainerFromItem
(cvg) as GroupItem;
6192
generator.IndexFromContainer(generator.
ContainerFromItem
(item)),
6223
generator.IndexFromContainer(generator.
ContainerFromItem
(item)),
System.Activities.Presentation (9)
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\CategoryList.cs (3)
852
CiderCategoryContainer categoryContainer = this.ItemContainerGenerator.
ContainerFromItem
(parentCategory) as CiderCategoryContainer;
897
CiderCategoryContainer categoryContainer = this.ItemContainerGenerator.
ContainerFromItem
(category) as CiderCategoryContainer;
922
CiderCategoryContainer categoryContainer = this.ItemContainerGenerator.
ContainerFromItem
(category) as CiderCategoryContainer;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryContainer.cs (4)
237
PropertyContainer propertyContainer = this.BasicPropertyContainersContainer.ItemContainerGenerator.
ContainerFromItem
(property) as PropertyContainer;
246
PropertyContainer propertyContainer = this.AdvancedPropertyContainersContainer.ItemContainerGenerator.
ContainerFromItem
(property) as PropertyContainer;
278
UIElement categoryEditor = this.BasicCategoryEditorsContainer.ItemContainerGenerator.
ContainerFromItem
(editor) as UIElement;
287
UIElement categoryEditor = this.AdvancedCategoryEditorsContainer.ItemContainerGenerator.
ContainerFromItem
(editor) as UIElement;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (1)
429
return subPropertyListControl.ItemContainerGenerator.
ContainerFromItem
(property) as PropertyContainer;