1 write to ItemsHost
PresentationFramework (1)
src\Framework\System\Windows\Controls\Panel.cs (1)
271itemsControl.ItemsHost = this;
79 references to ItemsHost
PresentationFramework (79)
src\Framework\MS\Internal\Helper.cs (1)
1239itemsHost = scrollingItemsControl.ItemsHost;
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
67Panel itemHost = owner.ItemsHost;
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
427Panel itemHost = row.CellsPresenter.ItemsHost;
src\Framework\System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
58if (cellsPresenter != null && cellsPresenter.ItemsHost != null)
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
215VirtualizingPanel itemsHost = _listview.ItemsHost as VirtualizingPanel;
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
71Panel itemHost = owner.ItemsHost;
src\Framework\System\Windows\Controls\ComboBox.cs (3)
1800bool isMouseOverItemsHost = comboBox.ItemsHost != null ? comboBox.ItemsHost.IsMouseOver : false; 1948Panel itemsHost = ItemsHost;
src\Framework\System\Windows\Controls\DataGrid.cs (1)
5885if (startingElement != null && ItemsHost.IsAncestorOf(startingElement))
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
461if (itemsControl.ItemsHost is VirtualizingPanel &&
src\Framework\System\Windows\Controls\ItemsControl.cs (49)
1849VirtualizingPanel itemsHost = ItemsHost as VirtualizingPanel; 1895if (ItemsHost == null) 1934if (ItemsHost == null) 1992if (startingElement == null || !ItemsHost.IsAncestorOf(startingElement)) 2006startingParent != ItemsHost) 2018bool isHorizontal = (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2028VirtualizingPanel virtualizingPanel = ItemsHost as VirtualizingPanel; 2154if (didScroll && nextElement != null && ItemsHost.IsAncestorOf(nextElement)) 2162if ((nextElement != null) && (ItemsHost.IsAncestorOf(nextElement))) 2196if (ItemsHost == null) 2242if (ItemsHost == null) 2299bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2378if (ItemsHost != null) 2384bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2401ItemsHost.UpdateLayout(); 2409FrameworkElement hopefulFirstElement = FindEndFocusableLeafContainer(ItemsHost, false /*last*/); 2444if (ItemsHost != null) 2450bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2467ItemsHost.UpdateLayout(); 2475FrameworkElement hopefulLastElement = FindEndFocusableLeafContainer(ItemsHost, true /*last*/); 2521if (itemsControl.ItemsHost != null) 2523result = FindEndFocusableLeafContainer(itemsControl.ItemsHost, last); 2591if (ItemsHost != null) 2593isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2642bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2685VirtualizingPanel virtualizingPanel = ItemsHost as VirtualizingPanel; 2718if (ScrollHost != null && ItemsHost != null) 2733ItemsHost.UpdateLayout(); 2743bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2796bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal); 2797bool isVertical = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Vertical); 2908viewPort = ItemsHost; 3230return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Vertical && 3240return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation == Orientation.Horizontal && 3298FrameworkElement relativeTo = ScrollHost != null ? (FrameworkElement)ScrollHost : ItemsHost;
src\Framework\System\Windows\Controls\ListBox.cs (2)
373if ((ItemsHost != null && ItemsHost.IsKeyboardFocusWithin) || IsKeyboardFocused)
src\Framework\System\Windows\Controls\Menu.cs (2)
218Panel itemsHost = ItemsHost; 232Panel itemsHost = ItemsHost;
src\Framework\System\Windows\Controls\Panel.cs (1)
270oldItemsHost = itemsControl.ItemsHost;
src\Framework\System\Windows\Controls\TreeViewItem.cs (7)
354Helper.ComputeCorrectionFactor(ParentTreeView, this, ItemsHost, HeaderElement); 379Helper.ApplyCorrectionFactorToPixelHeaderSize(ParentTreeView, this, ItemsHost, ref pixelHeaderSize); 392return Helper.ApplyCorrectionFactorToItemDesiredSizes(this, ItemsHost); 404return ItemsHost; 930VirtualizingPanel vp = ItemsHost as VirtualizingPanel; 1036VirtualizingPanel virtualizingPanel = item.ItemsHost as VirtualizingPanel; 1037item.ItemsHost.EnsureGenerator();
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (1)
397Panel p = ic.ItemsHost;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (5)
1209if (itemsControl.ItemsHost != null && itemsControl.ItemsHost.IsVisible) 1211result = ComputeFirstContainerInViewport(viewportElement, direction, itemsControl.ItemsHost, action, findTopContainer, out firstContainerOffsetFromViewport); 1231innerPanel = itemsControl.ItemsHost; 6390Panel scrollingPanel = (scrollingItemsControl == null) ? null : scrollingItemsControl.ItemsHost;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
2558Panel itemsHost = tvi.ItemsHost;