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