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