1 write to ItemsHost
PresentationFramework (1)
System\Windows\Controls\Panel.cs (1)
267itemsControl.ItemsHost = this;
79 references to ItemsHost
PresentationFramework (79)
MS\Internal\Helper.cs (1)
1223itemsHost = scrollingItemsControl.ItemsHost;
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
71Panel itemHost = owner.ItemsHost;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
424Panel itemHost = row.CellsPresenter.ItemsHost;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
59if (cellsPresenter != null && cellsPresenter.ItemsHost != null)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
215VirtualizingPanel itemsHost = _listview.ItemsHost as VirtualizingPanel;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
74Panel itemHost = owner.ItemsHost;
System\Windows\Controls\ComboBox.cs (3)
1797bool isMouseOverItemsHost = comboBox.ItemsHost != null ? comboBox.ItemsHost.IsMouseOver : false; 1940Panel itemsHost = ItemsHost;
System\Windows\Controls\DataGrid.cs (1)
5880if (startingElement != null && ItemsHost.IsAncestorOf(startingElement))
System\Windows\Controls\GridViewRowPresenter.cs (1)
458if (itemsControl.ItemsHost is VirtualizingPanel &&
System\Windows\Controls\ItemsControl.cs (49)
1846VirtualizingPanel itemsHost = ItemsHost as VirtualizingPanel; 1892if (ItemsHost == null) 1931if (ItemsHost == null) 1989if (startingElement == null || !ItemsHost.IsAncestorOf(startingElement)) 2003startingParent != ItemsHost) 2015bool isHorizontal = (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2025VirtualizingPanel virtualizingPanel = ItemsHost as VirtualizingPanel; 2151if (didScroll && nextElement != null && ItemsHost.IsAncestorOf(nextElement)) 2159if ((nextElement != null) && (ItemsHost.IsAncestorOf(nextElement))) 2193if (ItemsHost == null) 2239if (ItemsHost == null) 2296bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2375if (ItemsHost != null) 2381bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2398ItemsHost.UpdateLayout(); 2406FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2441if (ItemsHost != null) 2447bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2464ItemsHost.UpdateLayout(); 2472FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2518if (itemsControl.ItemsHost != null) 2520result = FindEndFocusableLeafContainer(itemsControl.ItemsHost, last); 2588if (ItemsHost != null) 2590isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2639bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2682VirtualizingPanel virtualizingPanel = ItemsHost as VirtualizingPanel; 2715if (ScrollHost != null && ItemsHost != null) 2730ItemsHost.UpdateLayout(); 2740bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2793bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2794bool isVertical = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Vertical); 2905viewPort = ItemsHost; 3299return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Vertical && 3309return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal && 3367FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
System\Windows\Controls\ListBox.cs (2)
375if ((ItemsHost != null && ItemsHost.IsKeyboardFocusWithin) || IsKeyboardFocused)
System\Windows\Controls\Menu.cs (2)
202Panel itemsHost = ItemsHost; 216Panel itemsHost = ItemsHost;
System\Windows\Controls\Panel.cs (1)
266oldItemsHost = itemsControl.ItemsHost;
System\Windows\Controls\TreeViewItem.cs (7)
353Helper.ComputeCorrectionFactor(ParentTreeView, this, ItemsHost, HeaderElement); 378Helper.ApplyCorrectionFactorToPixelHeaderSize(ParentTreeView, this, ItemsHost, ref pixelHeaderSize); 391return Helper.ApplyCorrectionFactorToItemDesiredSizes(this, ItemsHost); 403return ItemsHost; 931VirtualizingPanel vp = ItemsHost as VirtualizingPanel; 1036VirtualizingPanel virtualizingPanel = item.ItemsHost as VirtualizingPanel; 1037item.ItemsHost.EnsureGenerator();
System\Windows\Controls\VirtualizingPanel.cs (1)
351Panel p = ic.ItemsHost;
System\Windows\Controls\VirtualizingStackPanel.cs (5)
1243if (itemsControl.ItemsHost != null && itemsControl.ItemsHost.IsVisible) 1245result = ComputeFirstContainerInViewport(viewportElement, direction, itemsControl.ItemsHost, action, findTopContainer, out firstContainerOffsetFromViewport); 1265innerPanel = itemsControl.ItemsHost; 6528Panel scrollingPanel = (scrollingItemsControl == null) ? null : scrollingItemsControl.ItemsHost;
System\Windows\Input\KeyboardNavigation.cs (1)
2471Panel itemsHost = tvi.ItemsHost;