25 references to ItemFromContainer
PresentationFramework (22)
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
218
object item = itemsControl.ItemContainerGenerator.
ItemFromContainer
(child);
304
CollectionViewGroupInternal cvg = itemsControl.ItemContainerGenerator.
ItemFromContainer
(Owner) as CollectionViewGroupInternal;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
165
dataItem = (d != null) ? owner.ItemContainerGenerator.
ItemFromContainer
(d) : null;
System\Windows\Controls\ComboBox.cs (1)
1262
object item = ItemContainerGenerator.
ItemFromContainer
(comboBoxItem);
System\Windows\Controls\DataGrid.cs (1)
5631
CollectionViewGroupInternal cvg = ItemContainerGenerator.
ItemFromContainer
(currentGroupItem) as CollectionViewGroupInternal;
System\Windows\Controls\GroupItem.cs (1)
67
Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.ItemContainerGenerator.
ItemFromContainer
(this));
System\Windows\Controls\ItemsControl.cs (4)
3209
object item = itemsControl.ItemContainerGenerator.
ItemFromContainer
(focusedElement);
3452
item = itemsControl.ItemContainerGenerator.
ItemFromContainer
(element);
3543
object item = ItemContainerGenerator.
ItemFromContainer
(container);
3588
return NewItemInfo(ItemContainerGenerator.
ItemFromContainer
(container), container, ItemContainerGenerator.IndexFromContainer(container));
System\Windows\Controls\MenuItem.cs (1)
369
object originalItem = parent.ItemContainerGenerator.
ItemFromContainer
(menuItem);
System\Windows\Controls\Primitives\Selector.cs (1)
1879
object data = itemsControl.ItemContainerGenerator.
ItemFromContainer
(o);
System\Windows\Controls\TabControl.cs (1)
537
!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.
ItemFromContainer
(tabItem)))
System\Windows\Controls\TreeView.cs (1)
355
ChangeSelection(collapsed.ParentItemsControl.ItemContainerGenerator.
ItemFromContainer
(collapsed), collapsed, true);
System\Windows\Controls\VirtualizingStackPanel.cs (8)
4183
parentItem = itemsControl.ItemContainerGenerator.
ItemFromContainer
(groupItem);
4190
parentItem = parentItemsControl.ItemContainerGenerator.
ItemFromContainer
(itemsControl);
7540
itemStorageProvider.StoreItemValue(((ItemContainerGenerator)Generator).
ItemFromContainer
(child), ContainerSizeProperty, childSize);
7722
itemStorageProvider.StoreItemValue(generator.
ItemFromContainer
(child), ContainerSizeProperty, childSize);
7735
itemStorageProvider.StoreItemValue(generator.
ItemFromContainer
(child), ContainerSizeDualProperty, value);
8102
object item = ((ItemContainerGenerator)generator).
ItemFromContainer
((UIElement)children[childIndex]);
9130
item = itemsControl.ItemContainerGenerator.
ItemFromContainer
(child);
9453
CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.ItemContainerGenerator.
ItemFromContainer
(child), child);
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1048
MoveCurrentTo(CollectionView, ItemContainerGenerator.
ItemFromContainer
(category));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
192
object item = category.ItemContainerGenerator.
ItemFromContainer
(galleryItem);
246
object item = category.ItemContainerGenerator.
ItemFromContainer
(galleryItem);