public void Initialize(Orientation dir) { System.Drawing.RectangleF r; if (dir == Orientation.Horizontal) { r = new System.Drawing.RectangleF(0, 0, NSScroller.ScrollerWidth + 1, NSScroller.ScrollerWidth); } else { r = new System.Drawing.RectangleF(0, 0, NSScroller.ScrollerWidth, NSScroller.ScrollerWidth + 1); } ViewObject = new CustomScroller(r); }
public void Initialize(Orientation dir) { CGRect r; if (dir == Orientation.Horizontal) { r = new CGRect(0, 0, NSScroller.ScrollerWidth + 1, NSScroller.ScrollerWidth); } else { r = new CGRect(0, 0, NSScroller.ScrollerWidth, NSScroller.ScrollerWidth + 1); } ViewObject = new CustomScroller(r); }
public void Initialize(Orientation dir) { orientation = dir; ViewObject = new CustomScroller(); }