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