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