85 references to ScrollHost
PresentationFramework (85)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
41
if(owner.
ScrollHost
!= null)
43
AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.
ScrollHost
);
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (2)
52
if(owner.
ScrollHost
!= null)
54
AutomationPeer scrollPeer = UIElementAutomationPeer.CreatePeerForElement(owner.
ScrollHost
);
System\Windows\Controls\GridViewRowPresenter.cs (1)
454
ScrollViewer scrollViewer = itemsControl.
ScrollHost
as ScrollViewer;
System\Windows\Controls\ItemsControl.cs (71)
1995
startingElement =
ScrollHost
;
2021
if (
ScrollHost
!= null)
2033
ScrollHost
.CanContentScroll &&
2080
double oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2081
double oldVerticalOffset =
ScrollHost
.VerticalOffset;
2090
ScrollHost
.LineRight();
2094
ScrollHost
.LineDown();
2103
ScrollHost
.LineLeft();
2107
ScrollHost
.LineUp();
2113
ScrollHost
.UpdateLayout();
2119
if ((DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2120
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2122
(
ScrollHost
.VerticalOffset >
ScrollHost
.ExtentHeight ||
2123
ScrollHost
.HorizontalOffset >
ScrollHost
.ExtentWidth))
2125
(
ScrollHost
.VerticalOffset < 0.0 ||
2126
ScrollHost
.HorizontalOffset < 0.0)))
2294
ScrollHost
!= null)
2300
double oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2301
double oldVerticalOffset =
ScrollHost
.VerticalOffset;
2309
ScrollHost
.PageLeft();
2313
ScrollHost
.PageUp();
2322
ScrollHost
.PageRight();
2326
ScrollHost
.PageDown();
2332
ScrollHost
.UpdateLayout();
2335
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2336
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2377
if (
ScrollHost
!= null)
2385
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2386
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2390
ScrollHost
.ScrollToLeftEnd();
2394
ScrollHost
.ScrollToTop();
2401
while (!DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) ||
2402
!DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset));
2443
if (
ScrollHost
!= null)
2451
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2452
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2456
ScrollHost
.ScrollToRightEnd();
2460
ScrollHost
.ScrollToBottom();
2467
while (!DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) ||
2468
!DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset));
2630
Debug.Assert(
ScrollHost
!= null, "This operation to adjust the offset along an edge is only possible when there is a ScrollHost available");
2634
ScrollViewer scrollHost =
ScrollHost
;
2715
if (
ScrollHost
!= null && ItemsHost != null)
2724
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2725
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2733
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2734
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2746
oldHorizontalOffset =
ScrollHost
.HorizontalOffset;
2747
oldVerticalOffset =
ScrollHost
.VerticalOffset;
2751
ScrollHost
.LineRight();
2755
ScrollHost
.LineDown();
2758
ScrollHost
.UpdateLayout();
2761
if (DoubleUtil.AreClose(oldHorizontalOffset,
ScrollHost
.HorizontalOffset) &&
2762
DoubleUtil.AreClose(oldVerticalOffset,
ScrollHost
.VerticalOffset))
2796
if (
ScrollHost
!= null &&
2797
ScrollHost
.CanContentScroll &&
2807
return FindFocusable((int)
ScrollHost
.VerticalOffset, 1, out foundIndex, out firstElement);
2811
return FindFocusable((int)(
ScrollHost
.VerticalOffset + Math.Max(
ScrollHost
.ViewportHeight - 1, 0)),
2821
return FindFocusable((int)
ScrollHost
.HorizontalOffset, 1, out foundIndex, out firstElement);
2825
return FindFocusable((int)(
ScrollHost
.HorizontalOffset + Math.Max(
ScrollHost
.ViewportWidth - 1, 0)),
2902
FrameworkElement viewPort =
ScrollHost
;
3300
ScrollHost
!= null &&
ScrollHost
.CanContentScroll &&
3310
ScrollHost
!= null &&
ScrollHost
.CanContentScroll &&
3367
FrameworkElement relativeTo =
ScrollHost
!= null ? (FrameworkElement)
ScrollHost
: ItemsHost;
System\Windows\Controls\ListBox.cs (8)
359
bool shouldScroll =
ScrollHost
!= null;
363
((key == Key.Down && IsLogicalHorizontal && DoubleUtil.GreaterThan(
ScrollHost
.ScrollableHeight,
ScrollHost
.VerticalOffset))) ||
364
((key == Key.Up && IsLogicalHorizontal && DoubleUtil.GreaterThanZero(
ScrollHost
.VerticalOffset))) ||
365
((key == Key.Right&& IsLogicalVertical && DoubleUtil.GreaterThan(
ScrollHost
.ScrollableWidth,
ScrollHost
.HorizontalOffset))) ||
366
((key == Key.Left && IsLogicalVertical && DoubleUtil.GreaterThanZero(
ScrollHost
.HorizontalOffset)));
371
ScrollHost
.ScrollInDirection(e);
System\Windows\Controls\TreeView.cs (1)
630
ScrollViewer scroller =
ScrollHost
;