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