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