85 references to ScrollHost
PresentationFramework (85)
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
38
if(owner.
ScrollHost
!= null)
40
AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.
ScrollHost
);
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (2)
49
if(owner.
ScrollHost
!= null)
51
AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.
ScrollHost
);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
457
ScrollViewer scrollViewer = itemsControl.
ScrollHost
as ScrollViewer;
src\Framework\System\Windows\Controls\ItemsControl.cs (71)
1998
startingElement =
ScrollHost
;
2024
if (
ScrollHost
!= null)
2036
ScrollHost
.CanContentScroll &&
2083
double oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2084
double oldVerticalOffset =
ScrollHost
.VerticalOffset;
2093
ScrollHost
.LineRight();
2097
ScrollHost
.LineDown();
2106
ScrollHost
.LineLeft();
2110
ScrollHost
.LineUp();
2116
ScrollHost
.UpdateLayout();
2122
if ((DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2123
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2125
(
ScrollHost
.VerticalOffset >
ScrollHost
.ExtentHeight ||
2126
ScrollHost
.HorizontalOffset >
ScrollHost
.ExtentWidth))
2128
(
ScrollHost
.VerticalOffset < 0.0 ||
2129
ScrollHost
.HorizontalOffset < 0.0)))
2297
ScrollHost
!= null)
2303
double oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2304
double oldVerticalOffset =
ScrollHost
.VerticalOffset;
2312
ScrollHost
.PageLeft();
2316
ScrollHost
.PageUp();
2325
ScrollHost
.PageRight();
2329
ScrollHost
.PageDown();
2335
ScrollHost
.UpdateLayout();
2338
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2339
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2380
if (
ScrollHost
!= null)
2388
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2389
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2393
ScrollHost
.ScrollToLeftEnd();
2397
ScrollHost
.ScrollToTop();
2404
while (!DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) ||
2405
!DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset));
2446
if (
ScrollHost
!= null)
2454
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2455
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2459
ScrollHost
.ScrollToRightEnd();
2463
ScrollHost
.ScrollToBottom();
2470
while (!DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) ||
2471
!DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset));
2633
Debug.Assert(
ScrollHost
!= null, "This operation to adjust the offset along an edge is only possible when there is a ScrollHost available");
2637
ScrollViewer scrollHost =
ScrollHost
;
2718
if (
ScrollHost
!= null && ItemsHost != null)
2727
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2728
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2736
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2737
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2749
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2750
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2754
ScrollHost
.LineRight();
2758
ScrollHost
.LineDown();
2761
ScrollHost
.UpdateLayout();
2764
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2765
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2799
if (
ScrollHost
!= null &&
2800
ScrollHost
.CanContentScroll &&
2810
return FindFocusable((int)
ScrollHost
.VerticalOffset, 1, out foundIndex, out firstElement);
2814
return FindFocusable((int)(
ScrollHost
.VerticalOffset + Math.Max(
ScrollHost
.ViewportHeight - 1, 0)),
2824
return FindFocusable((int)
ScrollHost
.HorizontalOffset, 1, out foundIndex, out firstElement);
2828
return FindFocusable((int)(
ScrollHost
.HorizontalOffset + Math.Max(
ScrollHost
.ViewportWidth - 1, 0)),
2905
FrameworkElement viewPort =
ScrollHost
;
3231
ScrollHost
!= null &&
ScrollHost
.CanContentScroll &&
3241
ScrollHost
!= null &&
ScrollHost
.CanContentScroll &&
3298
FrameworkElement relativeTo =
ScrollHost
!= null ? (FrameworkElement)
ScrollHost
: ItemsHost;
src\Framework\System\Windows\Controls\ListBox.cs (8)
357
bool shouldScroll =
ScrollHost
!= null;
361
((key == Key.Down && IsLogicalHorizontal && DoubleUtil.GreaterThan(
ScrollHost
.ScrollableHeight,
ScrollHost
.VerticalOffset))) ||
362
((key == Key.Up && IsLogicalHorizontal && DoubleUtil.GreaterThan(
ScrollHost
.VerticalOffset, 0d))) ||
363
((key == Key.Right&& IsLogicalVertical && DoubleUtil.GreaterThan(
ScrollHost
.ScrollableWidth,
ScrollHost
.HorizontalOffset))) ||
364
((key == Key.Left && IsLogicalVertical && DoubleUtil.GreaterThan(
ScrollHost
.HorizontalOffset, 0d)));
369
ScrollHost
.ScrollInDirection(e);
src\Framework\System\Windows\Controls\TreeView.cs (1)
631
ScrollViewer scroller =
ScrollHost
;