Inheritance: MonoMac.AppKit.NSView, IMacControl
Example #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);
        }
Example #2
0
 public EtoTabViewItem(IMacViewHandler handler)
 {
     Identifier = new NSString(Guid.NewGuid().ToString());
     View       = new MacEventView {
         Handler = handler
     };
 }
Example #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);
     }
 }
Example #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
		}
Example #5
0
 public PanelHandler()
 {
     Control = new MacEventView {
         Handler = this
     };
 }
Example #6
0
		public TableLayoutHandler()
		{
#if OSX
			Control = new MacEventView { Handler = this };
#elif IOS
			Control = new NSView();
#endif
		}