picoe / Eto

Cross platform GUI framework for desktop and mobile applications in .NET
Other
3.62k stars 329 forks source link

Toolbar Style #449

Open harry-cpp opened 8 years ago

harry-cpp commented 8 years ago

In Gtk there is a way to choose between several toolbar styles:

Consider adding some way of setting this within Eto forms.

cwensley commented 8 years ago

Thanks for the suggestion!

You can do this currently using styles:

In your GTK startup project (you will have to reference gtk-sharp.dll):

using Eto;
using Eto.GtkSharp.Forms.ToolBar;

// ...
Style.Add<ToolBarHandler>("icons", h => h.Control.ToolbarStyle = Gtk.ToolbarStyle.Icons);
new Application().Run(new MainForm());

Then, in your main form:

myForm.ToolBar = new ToolBar { Style = "icons" /* ... */ };

Hope this helps!

harry-cpp commented 8 years ago

Hope this helps!

It does, Thanks.