Inheritance: MonoMac.AppKit.NSView, IMacControl
示例#1
0
        public ExpanderHandler()
        {
            Control = new MacEventView
            {
                Handler             = this,
                AutoresizesSubviews = false
            };

            disclosureButton = new NSButton
            {
                Title      = string.Empty,
                BezelStyle = NSBezelStyle.Disclosure
            };
            disclosureButton.Activated += (sender, e) => UpdateExpandedState();
            disclosureButton.SetButtonType(NSButtonType.PushOnPushOff);
            disclosureButton.SizeToFit();

            header = new NSView();

            content = new NSView
            {
                Hidden = true
            };

            Control.AddSubview(disclosureButton);
            Control.AddSubview(header);
            Control.AddSubview(content);
        }
示例#2
0
 public EtoTabViewItem(IMacViewHandler handler)
 {
     Identifier = new NSString(Guid.NewGuid().ToString());
     View       = new MacEventView {
         Handler = handler
     };
 }
示例#3
0
 public override void DrawBezelWithFrame(CGRect frame, NSView controlView)
 {
     if (Color != null)
     {
         MacEventView.Colourize(controlView, Color.Value, delegate
         {
             base.DrawBezelWithFrame(frame, controlView);
         });
     }
     else
     {
         base.DrawBezelWithFrame(frame, controlView);
     }
 }
示例#4
0
		public TableLayoutHandler()
		{
#if OSX
			Control = new MacEventView { Handler = this };
#elif IOS
			Control = new NSView();
#endif

			#pragma warning disable 612,618
			spacing = TableLayout.DefaultSpacing;
			padding = TableLayout.DefaultPadding;
			#pragma warning restore 612,618
		}
示例#5
0
 public PanelHandler()
 {
     Control = new MacEventView {
         Handler = this
     };
 }
示例#6
0
		public TableLayoutHandler()
		{
#if OSX
			Control = new MacEventView { Handler = this };
#elif IOS
			Control = new NSView();
#endif
		}