예제 #1
0
파일: SliderBackend.cs 프로젝트: madkat/xwt
 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));
     }
 }
예제 #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));
     }
 }