public static void ScrollToHorizontalOffset(this IScrollInfo scrollInfo, double offset) { scrollInfo.Offset = new Point(offset.Bounds(0, scrollInfo.GetScrollableSize().Width), scrollInfo.Offset.Y); }
public static void ScrollToVerticalOffset(this IScrollInfo scrollInfo, double offset) { scrollInfo.Offset = new Point(scrollInfo.Offset.X, offset.Bounds(0, scrollInfo.GetScrollableSize().Height)); }
public static void ScrollToEnd(this IScrollInfo scrollInfo) { scrollInfo.Offset = new Point(0, scrollInfo.GetScrollableSize().Height); }