85 references to ScrollHost
PresentationFramework (85)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
29
if(owner.
ScrollHost
!= null)
31
AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.
ScrollHost
);
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (2)
39
if(owner.
ScrollHost
!= null)
41
AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.
ScrollHost
);
System\Windows\Controls\GridViewRowPresenter.cs (1)
450
ScrollViewer scrollViewer = itemsControl.
ScrollHost
as ScrollViewer;
System\Windows\Controls\ItemsControl.cs (71)
1986
startingElement =
ScrollHost
;
2012
if (
ScrollHost
!= null)
2024
ScrollHost
.CanContentScroll &&
2071
double oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2072
double oldVerticalOffset =
ScrollHost
.VerticalOffset;
2081
ScrollHost
.LineRight();
2085
ScrollHost
.LineDown();
2094
ScrollHost
.LineLeft();
2098
ScrollHost
.LineUp();
2104
ScrollHost
.UpdateLayout();
2110
if ((DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2111
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2113
(
ScrollHost
.VerticalOffset >
ScrollHost
.ExtentHeight ||
2114
ScrollHost
.HorizontalOffset >
ScrollHost
.ExtentWidth))
2116
(
ScrollHost
.VerticalOffset < 0.0 ||
2117
ScrollHost
.HorizontalOffset < 0.0)))
2285
ScrollHost
!= null)
2291
double oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2292
double oldVerticalOffset =
ScrollHost
.VerticalOffset;
2300
ScrollHost
.PageLeft();
2304
ScrollHost
.PageUp();
2313
ScrollHost
.PageRight();
2317
ScrollHost
.PageDown();
2323
ScrollHost
.UpdateLayout();
2326
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2327
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2368
if (
ScrollHost
!= null)
2376
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2377
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2381
ScrollHost
.ScrollToLeftEnd();
2385
ScrollHost
.ScrollToTop();
2392
while (!DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) ||
2393
!DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset));
2434
if (
ScrollHost
!= null)
2442
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2443
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2447
ScrollHost
.ScrollToRightEnd();
2451
ScrollHost
.ScrollToBottom();
2458
while (!DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) ||
2459
!DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset));
2621
Debug.Assert(
ScrollHost
!= null, "This operation to adjust the offset along an edge is only possible when there is a ScrollHost available");
2625
ScrollViewer scrollHost =
ScrollHost
;
2706
if (
ScrollHost
!= null && ItemsHost != null)
2715
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2716
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2724
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2725
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2737
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2738
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2742
ScrollHost
.LineRight();
2746
ScrollHost
.LineDown();
2749
ScrollHost
.UpdateLayout();
2752
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2753
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2787
if (
ScrollHost
!= null &&
2788
ScrollHost
.CanContentScroll &&
2798
return FindFocusable((int)
ScrollHost
.VerticalOffset, 1, out foundIndex, out firstElement);
2802
return FindFocusable((int)(
ScrollHost
.VerticalOffset + Math.Max(
ScrollHost
.ViewportHeight - 1, 0)),
2812
return FindFocusable((int)
ScrollHost
.HorizontalOffset, 1, out foundIndex, out firstElement);
2816
return FindFocusable((int)(
ScrollHost
.HorizontalOffset + Math.Max(
ScrollHost
.ViewportWidth - 1, 0)),
2893
FrameworkElement viewPort =
ScrollHost
;
3291
ScrollHost
!= null &&
ScrollHost
.CanContentScroll &&
3301
ScrollHost
!= null &&
ScrollHost
.CanContentScroll &&
3358
FrameworkElement relativeTo =
ScrollHost
!= null ? (FrameworkElement)
ScrollHost
: ItemsHost;
System\Windows\Controls\ListBox.cs (8)
353
bool shouldScroll =
ScrollHost
!= null;
357
((key == Key.Down && IsLogicalHorizontal && DoubleUtil.GreaterThan(
ScrollHost
.ScrollableHeight,
ScrollHost
.VerticalOffset))) ||
358
((key == Key.Up && IsLogicalHorizontal && DoubleUtil.GreaterThanZero(
ScrollHost
.VerticalOffset))) ||
359
((key == Key.Right&& IsLogicalVertical && DoubleUtil.GreaterThan(
ScrollHost
.ScrollableWidth,
ScrollHost
.HorizontalOffset))) ||
360
((key == Key.Left && IsLogicalVertical && DoubleUtil.GreaterThanZero(
ScrollHost
.HorizontalOffset)));
365
ScrollHost
.ScrollInDirection(e);
System\Windows\Controls\TreeView.cs (1)
625
ScrollViewer scroller =
ScrollHost
;