public void ScrollContentY(int NewPosition) { if (!VScroll.Thumb.Visible) { return; } Scrollable.ScrollToY(NewPosition); VScroll.SyncToView(); }
public void ScrollContentXY(int x, int y) { if (VScroll.Thumb.Visible) { Scrollable.ScrollToY(y); VScroll.SyncToView(); } if (HScroll.Thumb.Visible) { Scrollable.ScrollToX(x); HScroll.SyncToView(); } // RaiseNeedRedraw(this); }
protected void VScroll_Scrolled(int OldPosition, int NewPosition) { Scrollable.ScrollToY(NewPosition); RaiseNeedRedraw(this); }