44 references to ItemsControlFromItemContainer
PresentationFramework (44)
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
123
ItemsControl itemsControl = ItemsControl.
ItemsControlFromItemContainer
(Owner);
287
ItemsControl itemsControl = ItemsControl.
ItemsControlFromItemContainer
(Owner);
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (2)
97
ItemsControl parent = ItemsControl.
ItemsControlFromItemContainer
(owner);
121
ItemsControl parent = ItemsControl.
ItemsControlFromItemContainer
(owner);
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1144
if (currentFocus == null || (!IsContextMenuOpen &&
ItemsControlFromItemContainer
(currentFocus) != this))
src\Framework\System\Windows\Controls\DataGrid.cs (2)
5449
ItemsControl itemsControl =
ItemsControlFromItemContainer
(e.OriginalSource as DependencyObject);
6199
DataGrid focusedDataGrid = ItemsControl.
ItemsControlFromItemContainer
(startingRow) as DataGrid;
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
1045
dataGridOwner = ItemsControl.
ItemsControlFromItemContainer
(_owner) as DataGrid;
1086
return ItemsControl.
ItemsControlFromItemContainer
(this) as DataGridCellsPresenter;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
453
ItemsControl itemsControl = ItemsControl.
ItemsControlFromItemContainer
(_viewItem) as ItemsControl;
src\Framework\System\Windows\Controls\ItemsControl.cs (6)
1244
if (itemsControl == null || itemsControl ==
ItemsControlFromItemContainer
(element))
1455
ItemsControl ic =
ItemsControlFromItemContainer
(container);
1683
(e.OriginalSource == this ||
ItemsControlFromItemContainer
(e.OriginalSource as DependencyObject) == this))
3357
ItemsControl itemsControl = ItemsControl.
ItemsControlFromItemContainer
(element);
3380
itemsControl = ItemsControl.
ItemsControlFromItemContainer
(element);
3477
&&
ItemsControlFromItemContainer
(container) == this
src\Framework\System\Windows\Controls\ListBox.cs (3)
430
if (source != null &&
ItemsControlFromItemContainer
(source) == this)
548
if (newListBoxItem != null &&
ItemsControlFromItemContainer
(newListBoxItem) == listbox)
753
if (
ItemsControlFromItemContainer
(listItem) == this)
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
386
return ItemsControl.
ItemsControlFromItemContainer
(this) as Selector;
src\Framework\System\Windows\Controls\MenuItem.cs (11)
369
ItemsControl parent = ItemsControl.
ItemsControlFromItemContainer
(menuItem);
451
MenuItem parent = ItemsControl.
ItemsControlFromItemContainer
(this) as MenuItem;
1205
ItemsControl parent = ItemsControl.
ItemsControlFromItemContainer
(this);
1647
if ((uiElement != null) && (
ItemsControlFromItemContainer
(uiElement) == menuItem))
1702
MenuItem parent = ItemsControl.
ItemsControlFromItemContainer
(this) as MenuItem;
1722
ItemsControl parent = ItemsControl.
ItemsControlFromItemContainer
(this);
1853
ItemsControl parent = ItemsControl.
ItemsControlFromItemContainer
(this);
2039
ItemsControl parent = ItemsControl.
ItemsControlFromItemContainer
(this);
2376
ItemsControl owner = ItemsControl.
ItemsControlFromItemContainer
(this);
2416
ItemsControl parent =
ItemsControlFromItemContainer
(this);
2463
return
ItemsControlFromItemContainer
(this);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
937
_parentPresenter = ItemsControl.
ItemsControlFromItemContainer
(this) as DataGridColumnHeadersPresenter;
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
310
ItemsControl ic = ItemsControl.
ItemsControlFromItemContainer
(TemplatedParent);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
1896
ItemsControl itemsControl = ItemsControl.
ItemsControlFromItemContainer
(o);
1939
itemsControl = ItemsControl.
ItemsControlFromItemContainer
(element);
src\Framework\System\Windows\Controls\TabItem.cs (1)
498
return ItemsControl.
ItemsControlFromItemContainer
(this) as TabControl;
src\Framework\System\Windows\Controls\ToolBar.cs (2)
398
ToolBar toolBar = ItemsControl.
ItemsControlFromItemContainer
(element) as ToolBar;
657
if (currentFocusElement != null && ItemsControl.
ItemsControlFromItemContainer
(currentFocusElement) == this)
src\Framework\System\Windows\Controls\TreeView.cs (1)
708
ItemsControl parentItemsControl = ItemsControl.
ItemsControlFromItemContainer
(_selectedContainer);
src\Framework\System\Windows\Controls\TreeViewItem.cs (3)
442
parent = ItemsControl.
ItemsControlFromItemContainer
(parent);
467
return ItemsControl.
ItemsControlFromItemContainer
(this);
693
ItemsControl parentItemsControl = ItemsControl.
ItemsControlFromItemContainer
(this);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
6428
ItemsControl parent = ItemsControl.
ItemsControlFromItemContainer
(container);
6437
parent = ItemsControl.
ItemsControlFromItemContainer
(parent);