예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
 public void Initialize(Orientation dir)
 {
     orientation = dir;
     ViewObject  = new CustomScroller();
 }