WidgetStyle Property |
Namespace: Eto
// in your UI var control = new Button { Style = "mystyle" }; // in your platform assembly using Eto.Mac.Forms.Controls; Styles.AddHandler<ButtonHandler>("mystyle", handler => { // this is where you can use handler.Control to set properties, handle events, etc. handler.Control.BezelStyle = NSBezelStyle.SmallSquare; });