55 references to ItemsControlFromItemContainer
PresentationFramework (43)
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
115ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner); 289ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
88ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 120ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner);
System\Windows\Controls\ComboBox.cs (1)
1132if (currentFocus == null || (!IsContextMenuOpen && ItemsControlFromItemContainer(currentFocus) != this))
System\Windows\Controls\DataGrid.cs (2)
5441ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject); 6191DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid;
System\Windows\Controls\DataGridCell.cs (2)
1082dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid; 1123return ItemsControl.ItemsControlFromItemContainer(this) as DataGridCellsPresenter;
System\Windows\Controls\GridViewRowPresenter.cs (1)
446ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(_viewItem) as ItemsControl;
System\Windows\Controls\ItemsControl.cs (6)
1231if (itemsControl == null || itemsControl == ItemsControlFromItemContainer(element)) 1443ItemsControl ic = ItemsControlFromItemContainer(container); 1671(e.OriginalSource == this || ItemsControlFromItemContainer(e.OriginalSource as DependencyObject) == this)) 3417ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3440itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3537&& ItemsControlFromItemContainer(container) == this
System\Windows\Controls\ListBox.cs (3)
426if (source != null && ItemsControlFromItemContainer(source) == this) 587if (newListBoxItem != null && ItemsControlFromItemContainer(newListBoxItem) == listbox) 792if (ItemsControlFromItemContainer(listItem) == this)
System\Windows\Controls\ListBoxItem.cs (1)
379return ItemsControl.ItemsControlFromItemContainer(this) as Selector;
System\Windows\Controls\MenuItem.cs (11)
356ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(menuItem); 438MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1209ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1601if ((uiElement != null) && (ItemsControlFromItemContainer(uiElement) == menuItem)) 1656MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1676ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1807ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1987ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 2306ItemsControl owner = ItemsControl.ItemsControlFromItemContainer(this); 2346ItemsControl parent = ItemsControlFromItemContainer(this); 2393return ItemsControlFromItemContainer(this);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
931_parentPresenter = ItemsControl.ItemsControlFromItemContainer(this) as DataGridColumnHeadersPresenter;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
305ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(TemplatedParent);
System\Windows\Controls\Primitives\Selector.cs (1)
1867ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(o);
System\Windows\Controls\TabItem.cs (1)
506return ItemsControl.ItemsControlFromItemContainer(this) as TabControl;
System\Windows\Controls\ToolBar.cs (2)
385ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; 638if (currentFocusElement != null && ItemsControl.ItemsControlFromItemContainer(currentFocusElement) == this)
System\Windows\Controls\TreeView.cs (1)
701ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer);
System\Windows\Controls\TreeViewItem.cs (3)
437parent = ItemsControl.ItemsControlFromItemContainer(parent); 462return ItemsControl.ItemsControlFromItemContainer(this); 688ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(this);
System\Windows\Controls\VirtualizingStackPanel.cs (2)
6561ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(container); 6570parent = ItemsControl.ItemsControlFromItemContainer(parent);
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (1)
118get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
116get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1772RibbonTab tab = ItemsControl.ItemsControlFromItemContainer(this) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
2445RibbonApplicationMenu applicationMenu = ItemsControl.ItemsControlFromItemContainer(menuItem) as RibbonApplicationMenu; 2485ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(menuItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
900ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (3)
725ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1426ItemsControl parent = ItemsControlFromItemContainer(this); 1508ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
123ItemsControl tabHeaderItemsControl = ItemsControl.ItemsControlFromItemContainer(this);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
564ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(itemsControl); 573ItemsControl grandParentItemsControl = ItemsControl.ItemsControlFromItemContainer(parentItemsControl);