1 write to ItemsHost
PresentationFramework (1)
System\Windows\Controls\Panel.cs (1)
259itemsControl.ItemsHost = this;
79 references to ItemsHost
PresentationFramework (79)
MS\Internal\Helper.cs (1)
1207itemsHost = scrollingItemsControl.ItemsHost;
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
68Panel itemHost = owner.ItemsHost;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
418Panel itemHost = row.CellsPresenter.ItemsHost;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
54if (cellsPresenter != null && cellsPresenter.ItemsHost != null)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
202VirtualizingPanel itemsHost = _listview.ItemsHost as VirtualizingPanel;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
61Panel itemHost = owner.ItemsHost;
System\Windows\Controls\ComboBox.cs (3)
1784bool isMouseOverItemsHost = comboBox.ItemsHost != null ? comboBox.ItemsHost.IsMouseOver : false; 1927Panel itemsHost = ItemsHost;
System\Windows\Controls\DataGrid.cs (1)
5838if (startingElement != null && ItemsHost.IsAncestorOf(startingElement))
System\Windows\Controls\GridViewRowPresenter.cs (1)
453if (itemsControl.ItemsHost is VirtualizingPanel &&
System\Windows\Controls\ItemsControl.cs (49)
1809VirtualizingPanel itemsHost = ItemsHost as VirtualizingPanel; 1852if (ItemsHost == null) 1891if (ItemsHost == null) 1949if (startingElement == null || !ItemsHost.IsAncestorOf(startingElement)) 1963startingParent != ItemsHost) 1975bool isHorizontal = (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 1985VirtualizingPanel virtualizingPanel = ItemsHost as VirtualizingPanel; 2111if (didScroll && nextElement != null && ItemsHost.IsAncestorOf(nextElement)) 2119if ((nextElement != null) && (ItemsHost.IsAncestorOf(nextElement))) 2153if (ItemsHost == null) 2199if (ItemsHost == null) 2256bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2335if (ItemsHost != null) 2341bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2358ItemsHost.UpdateLayout(); 2366FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2401if (ItemsHost != null) 2407bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2424ItemsHost.UpdateLayout(); 2432FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2478if (itemsControl.ItemsHost != null) 2480result = FindEndFocusableLeafContainer(itemsControl.ItemsHost, last); 2548if (ItemsHost != null) 2550isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2599bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2642VirtualizingPanel virtualizingPanel = ItemsHost as VirtualizingPanel; 2675if (ScrollHost != null && ItemsHost != null) 2690ItemsHost.UpdateLayout(); 2700bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2753bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2754bool isVertical = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Vertical); 2865viewPort = ItemsHost; 3259return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Vertical && 3269return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal && 3327FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
System\Windows\Controls\ListBox.cs (2)
367if ((ItemsHost != null && ItemsHost.IsKeyboardFocusWithin) || IsKeyboardFocused)
System\Windows\Controls\Menu.cs (2)
191Panel itemsHost = ItemsHost; 205Panel itemsHost = ItemsHost;
System\Windows\Controls\Panel.cs (1)
258oldItemsHost = itemsControl.ItemsHost;
System\Windows\Controls\TreeViewItem.cs (7)
342Helper.ComputeCorrectionFactor(ParentTreeView, this, ItemsHost, HeaderElement); 367Helper.ApplyCorrectionFactorToPixelHeaderSize(ParentTreeView, this, ItemsHost, ref pixelHeaderSize); 380return Helper.ApplyCorrectionFactorToItemDesiredSizes(this, ItemsHost); 392return ItemsHost; 912VirtualizingPanel vp = ItemsHost as VirtualizingPanel; 1014VirtualizingPanel virtualizingPanel = item.ItemsHost as VirtualizingPanel; 1015item.ItemsHost.EnsureGenerator();
System\Windows\Controls\VirtualizingPanel.cs (1)
344Panel p = ic.ItemsHost;
System\Windows\Controls\VirtualizingStackPanel.cs (5)
1237if (itemsControl.ItemsHost != null && itemsControl.ItemsHost.IsVisible) 1239result = ComputeFirstContainerInViewport(viewportElement, direction, itemsControl.ItemsHost, action, findTopContainer, out firstContainerOffsetFromViewport); 1259innerPanel = itemsControl.ItemsHost; 6499Panel scrollingPanel = scrollingItemsControl?.ItemsHost;
System\Windows\Input\KeyboardNavigation.cs (1)
2459Panel itemsHost = tvi.ItemsHost;