23 references to ItemFromContainer
PresentationFramework (22)
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
204object item = itemsControl.ItemContainerGenerator.ItemFromContainer(child); 290CollectionViewGroupInternal cvg = itemsControl.ItemContainerGenerator.ItemFromContainer(Owner) as CollectionViewGroupInternal;
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
162dataItem = (d != null) ? owner.ItemContainerGenerator.ItemFromContainer(d) : null;
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1264object item = ItemContainerGenerator.ItemFromContainer(comboBoxItem);
src\Framework\System\Windows\Controls\DataGrid.cs (1)
5636CollectionViewGroupInternal cvg = ItemContainerGenerator.ItemFromContainer(currentGroupItem) as CollectionViewGroupInternal;
src\Framework\System\Windows\Controls\GroupItem.cs (1)
69Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.ItemContainerGenerator.ItemFromContainer(this));
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
3140object item = itemsControl.ItemContainerGenerator.ItemFromContainer(focusedElement); 3383item = itemsControl.ItemContainerGenerator.ItemFromContainer(element); 3474object item = ItemContainerGenerator.ItemFromContainer(container); 3519return NewItemInfo(ItemContainerGenerator.ItemFromContainer(container), container, ItemContainerGenerator.IndexFromContainer(container));
src\Framework\System\Windows\Controls\MenuItem.cs (1)
372object originalItem = parent.ItemContainerGenerator.ItemFromContainer(menuItem);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
1899object data = itemsControl.ItemContainerGenerator.ItemFromContainer(o);
src\Framework\System\Windows\Controls\TabControl.cs (1)
538!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem)))
src\Framework\System\Windows\Controls\TreeView.cs (1)
356ChangeSelection(collapsed.ParentItemsControl.ItemContainerGenerator.ItemFromContainer(collapsed), collapsed, true);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (8)
4101parentItem = itemsControl.ItemContainerGenerator.ItemFromContainer(groupItem); 4108parentItem = parentItemsControl.ItemContainerGenerator.ItemFromContainer(itemsControl); 7400itemStorageProvider.StoreItemValue(((ItemContainerGenerator)Generator).ItemFromContainer(child), ContainerSizeProperty, childSize); 7582itemStorageProvider.StoreItemValue(generator.ItemFromContainer(child), ContainerSizeProperty, childSize); 7595itemStorageProvider.StoreItemValue(generator.ItemFromContainer(child), ContainerSizeDualProperty, value); 7947object item = ((ItemContainerGenerator)generator).ItemFromContainer((UIElement)children[childIndex]); 8972item = itemsControl.ItemContainerGenerator.ItemFromContainer(child); 9299CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.ItemContainerGenerator.ItemFromContainer(child), child);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
716dataGrid.SelectedItems.Add(dataGrid.ItemContainerGenerator.ItemFromContainer(row));