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