public void ScrollContentX(int NewPosition)
 {
     if (!HScroll.Thumb.Visible)
     {
         return;
     }
     Scrollable.ScrollToX(NewPosition);
     HScroll.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 HScroll_Scrolled(int OldPosition, int NewPosition)
 {
     Scrollable.ScrollToX(NewPosition);
     RaiseNeedRedraw(this);
 }