1 write to ItemsHost
PresentationFramework (1)
System\Windows\Controls\Panel.cs (1)
260itemsControl.ItemsHost = this;
79 references to ItemsHost
PresentationFramework (79)
MS\Internal\Helper.cs (1)
1214itemsHost = scrollingItemsControl.ItemsHost;
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
69Panel itemHost = owner.ItemsHost;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
419Panel itemHost = row.CellsPresenter.ItemsHost;
System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
55if (cellsPresenter != null && cellsPresenter.ItemsHost != null)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
203VirtualizingPanel itemsHost = _listview.ItemsHost as VirtualizingPanel;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
62Panel itemHost = owner.ItemsHost;
System\Windows\Controls\ComboBox.cs (3)
1787bool isMouseOverItemsHost = comboBox.ItemsHost != null ? comboBox.ItemsHost.IsMouseOver : false; 1930Panel itemsHost = ItemsHost;
System\Windows\Controls\DataGrid.cs (1)
5877if (startingElement != null && ItemsHost.IsAncestorOf(startingElement))
System\Windows\Controls\GridViewRowPresenter.cs (1)
454if (itemsControl.ItemsHost is VirtualizingPanel &&
System\Windows\Controls\ItemsControl.cs (49)
1837VirtualizingPanel itemsHost = ItemsHost as VirtualizingPanel; 1883if (ItemsHost == null) 1922if (ItemsHost == null) 1980if (startingElement == null || !ItemsHost.IsAncestorOf(startingElement)) 1994startingParent != ItemsHost) 2006bool isHorizontal = (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2016VirtualizingPanel virtualizingPanel = ItemsHost as VirtualizingPanel; 2142if (didScroll && nextElement != null && ItemsHost.IsAncestorOf(nextElement)) 2150if ((nextElement != null) && (ItemsHost.IsAncestorOf(nextElement))) 2184if (ItemsHost == null) 2230if (ItemsHost == null) 2287bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2366if (ItemsHost != null) 2372bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2389ItemsHost.UpdateLayout(); 2397FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2432if (ItemsHost != null) 2438bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2455ItemsHost.UpdateLayout(); 2463FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2509if (itemsControl.ItemsHost != null) 2511result = FindEndFocusableLeafContainer(itemsControl.ItemsHost, last); 2579if (ItemsHost != null) 2581isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2630bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2673VirtualizingPanel virtualizingPanel = ItemsHost as VirtualizingPanel; 2706if (ScrollHost != null && ItemsHost != null) 2721ItemsHost.UpdateLayout(); 2731bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2784bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2785bool isVertical = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Vertical); 2896viewPort = ItemsHost; 3290return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Vertical && 3300return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal && 3358FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
System\Windows\Controls\ListBox.cs (2)
369if ((ItemsHost != null && ItemsHost.IsKeyboardFocusWithin) || IsKeyboardFocused)
System\Windows\Controls\Menu.cs (2)
192Panel itemsHost = ItemsHost; 206Panel itemsHost = ItemsHost;
System\Windows\Controls\Panel.cs (1)
259oldItemsHost = itemsControl.ItemsHost;
System\Windows\Controls\TreeViewItem.cs (7)
349Helper.ComputeCorrectionFactor(ParentTreeView, this, ItemsHost, HeaderElement); 374Helper.ApplyCorrectionFactorToPixelHeaderSize(ParentTreeView, this, ItemsHost, ref pixelHeaderSize); 387return Helper.ApplyCorrectionFactorToItemDesiredSizes(this, ItemsHost); 399return ItemsHost; 927VirtualizingPanel vp = ItemsHost as VirtualizingPanel; 1032VirtualizingPanel virtualizingPanel = item.ItemsHost as VirtualizingPanel; 1033item.ItemsHost.EnsureGenerator();
System\Windows\Controls\VirtualizingPanel.cs (1)
345Panel p = ic.ItemsHost;
System\Windows\Controls\VirtualizingStackPanel.cs (5)
1238if (itemsControl.ItemsHost != null && itemsControl.ItemsHost.IsVisible) 1240result = ComputeFirstContainerInViewport(viewportElement, direction, itemsControl.ItemsHost, action, findTopContainer, out firstContainerOffsetFromViewport); 1260innerPanel = itemsControl.ItemsHost; 6523Panel scrollingPanel = (scrollingItemsControl == null) ? null : scrollingItemsControl.ItemsHost;
System\Windows\Input\KeyboardNavigation.cs (1)
2461Panel itemsHost = tvi.ItemsHost;