Example #1
0
 public void Initialize(Orientation dir)
 {
     ViewObject = new MacSlider();
     //((NSSliderCell)Widget.Cell).SetValueForKey (NSObject.FromObject (false), (NSString)"NSVertical");
     if (dir == Orientation.Vertical)
     {
         Widget.SetFrameSize(new System.Drawing.SizeF(10, 5));
     }
     else
     {
         Widget.SetFrameSize(new System.Drawing.SizeF(5, 10));
     }
 }
Example #2
0
 public void Initialize(Orientation dir)
 {
     ViewObject = new MacSlider();
     //((NSSliderCell)Widget.Cell).SetValueForKey (NSObject.FromObject (false), (NSString)"NSVertical");
     orientation = dir;
     if (dir == Orientation.Horizontal)
     {
         Widget.SetFrameSize(new CGSize(80, 30));
     }
     else
     {
         Widget.SetFrameSize(new CGSize(30, 80));
     }
 }