55 references to ItemsControlFromItemContainer
PresentationFramework (43)
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
127ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner); 301ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
101ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 133ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner);
System\Windows\Controls\ComboBox.cs (1)
1142if (currentFocus == null || (!IsContextMenuOpen && ItemsControlFromItemContainer(currentFocus) != this))
System\Windows\Controls\DataGrid.cs (2)
5444ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject); 6194DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid;
System\Windows\Controls\DataGridCell.cs (2)
1089dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid; 1130return ItemsControl.ItemsControlFromItemContainer(this) as DataGridCellsPresenter;
System\Windows\Controls\GridViewRowPresenter.cs (1)
450ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(_viewItem) as ItemsControl;
System\Windows\Controls\ItemsControl.cs (6)
1240if (itemsControl == null || itemsControl == ItemsControlFromItemContainer(element)) 1452ItemsControl ic = ItemsControlFromItemContainer(container); 1680(e.OriginalSource == this || ItemsControlFromItemContainer(e.OriginalSource as DependencyObject) == this)) 3426ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3449itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3546&& ItemsControlFromItemContainer(container) == this
System\Windows\Controls\ListBox.cs (3)
432if (source != null && ItemsControlFromItemContainer(source) == this) 593if (newListBoxItem != null && ItemsControlFromItemContainer(newListBoxItem) == listbox) 798if (ItemsControlFromItemContainer(listItem) == this)
System\Windows\Controls\ListBoxItem.cs (1)
386return ItemsControl.ItemsControlFromItemContainer(this) as Selector;
System\Windows\Controls\MenuItem.cs (11)
366ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(menuItem); 448MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1219ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1611if ((uiElement != null) && (ItemsControlFromItemContainer(uiElement) == menuItem)) 1666MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1686ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1817ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1997ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 2316ItemsControl owner = ItemsControl.ItemsControlFromItemContainer(this); 2356ItemsControl parent = ItemsControlFromItemContainer(this); 2403return ItemsControlFromItemContainer(this);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
936_parentPresenter = ItemsControl.ItemsControlFromItemContainer(this) as DataGridColumnHeadersPresenter;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
309ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(TemplatedParent);
System\Windows\Controls\Primitives\Selector.cs (1)
1876ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(o);
System\Windows\Controls\TabItem.cs (1)
512return ItemsControl.ItemsControlFromItemContainer(this) as TabControl;
System\Windows\Controls\ToolBar.cs (2)
394ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; 647if (currentFocusElement != null && ItemsControl.ItemsControlFromItemContainer(currentFocusElement) == this)
System\Windows\Controls\TreeView.cs (1)
706ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer);
System\Windows\Controls\TreeViewItem.cs (3)
441parent = ItemsControl.ItemsControlFromItemContainer(parent); 466return ItemsControl.ItemsControlFromItemContainer(this); 692ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(this);
System\Windows\Controls\VirtualizingStackPanel.cs (2)
6566ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(container); 6575parent = ItemsControl.ItemsControlFromItemContainer(parent);
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (1)
121get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
119get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1775RibbonTab tab = ItemsControl.ItemsControlFromItemContainer(this) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
2450RibbonApplicationMenu applicationMenu = ItemsControl.ItemsControlFromItemContainer(menuItem) as RibbonApplicationMenu; 2490ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(menuItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
903ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (3)
728ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1429ItemsControl parent = ItemsControlFromItemContainer(this); 1511ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
125ItemsControl tabHeaderItemsControl = ItemsControl.ItemsControlFromItemContainer(this);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
567ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(itemsControl); 576ItemsControl grandParentItemsControl = ItemsControl.ItemsControlFromItemContainer(parentItemsControl);