25 references to ItemFromContainer
PresentationFramework (22)
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
206
object item = itemsControl.ItemContainerGenerator.
ItemFromContainer
(child);
292
CollectionViewGroupInternal cvg = itemsControl.ItemContainerGenerator.
ItemFromContainer
(Owner) as CollectionViewGroupInternal;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
153
dataItem = (d != null) ? owner.ItemContainerGenerator.
ItemFromContainer
(d) : null;
System\Windows\Controls\ComboBox.cs (1)
1252
object item = ItemContainerGenerator.
ItemFromContainer
(comboBoxItem);
System\Windows\Controls\DataGrid.cs (1)
5628
CollectionViewGroupInternal cvg = ItemContainerGenerator.
ItemFromContainer
(currentGroupItem) as CollectionViewGroupInternal;
System\Windows\Controls\GroupItem.cs (1)
59
Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.ItemContainerGenerator.
ItemFromContainer
(this));
System\Windows\Controls\ItemsControl.cs (4)
3200
object item = itemsControl.ItemContainerGenerator.
ItemFromContainer
(focusedElement);
3443
item = itemsControl.ItemContainerGenerator.
ItemFromContainer
(element);
3534
object item = ItemContainerGenerator.
ItemFromContainer
(container);
3579
return NewItemInfo(ItemContainerGenerator.
ItemFromContainer
(container), container, ItemContainerGenerator.IndexFromContainer(container));
System\Windows\Controls\MenuItem.cs (1)
359
object originalItem = parent.ItemContainerGenerator.
ItemFromContainer
(menuItem);
System\Windows\Controls\Primitives\Selector.cs (1)
1870
object data = itemsControl.ItemContainerGenerator.
ItemFromContainer
(o);
System\Windows\Controls\TabControl.cs (1)
527
!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.
ItemFromContainer
(tabItem)))
System\Windows\Controls\TreeView.cs (1)
350
ChangeSelection(collapsed.ParentItemsControl.ItemContainerGenerator.
ItemFromContainer
(collapsed), collapsed, true);
System\Windows\Controls\VirtualizingStackPanel.cs (8)
4178
parentItem = itemsControl.ItemContainerGenerator.
ItemFromContainer
(groupItem);
4185
parentItem = parentItemsControl.ItemContainerGenerator.
ItemFromContainer
(itemsControl);
7535
itemStorageProvider.StoreItemValue(((ItemContainerGenerator)Generator).
ItemFromContainer
(child), ContainerSizeProperty, childSize);
7717
itemStorageProvider.StoreItemValue(generator.
ItemFromContainer
(child), ContainerSizeProperty, childSize);
7730
itemStorageProvider.StoreItemValue(generator.
ItemFromContainer
(child), ContainerSizeDualProperty, value);
8097
object item = ((ItemContainerGenerator)generator).
ItemFromContainer
((UIElement)children[childIndex]);
9125
item = itemsControl.ItemContainerGenerator.
ItemFromContainer
(child);
9448
CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.ItemContainerGenerator.
ItemFromContainer
(child), child);
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1046
MoveCurrentTo(CollectionView, ItemContainerGenerator.
ItemFromContainer
(category));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
190
object item = category.ItemContainerGenerator.
ItemFromContainer
(galleryItem);
244
object item = category.ItemContainerGenerator.
ItemFromContainer
(galleryItem);