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); }
public EtoTabViewItem(IMacViewHandler handler) { Identifier = new NSString(Guid.NewGuid().ToString()); View = new MacEventView { Handler = handler }; }
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); } }
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 }
public PanelHandler() { Control = new MacEventView { Handler = this }; }
public TableLayoutHandler() { #if OSX Control = new MacEventView { Handler = this }; #elif IOS Control = new NSView(); #endif }