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