Comments (6)
I changed the code of the ToolbarHandler for the Mac platform (uncommented a line) and now the customization works.
At least the dialog shows up. But I don't know how to add toolbuttons to the dialog and not the toolbar itself.
from eto.
It will take a bit of work to implement toolbar customization for all platforms (if you want to take a stab at it, it would be more than welcome).
If you just want to allow customization for the OS X toolbar, you can probably do so using the styles (in your monomac app):
Style.AddHandler<ToolBarHandler> ("mytoolbarstyle", handler => {
handler.Control.AllowsUserCustomization = true;
handler.Control.Delegate = new MyToolbarDelegateThatHandlesCustomization ();
});
and in your form:
this.ToolBar = args.ToolBar.GenerateToolBar();
this.ToolBar.Style = "mytoolbarstyle";
The main difference between showing items in the customization palette vs. what items are shown on the toolbar is the DefaultItemIdentifiers() method of the delegate.
from eto.
thanks for the tipp. Is there any way to customize toolbar buttons as well? Do they have some kind of default style applied, or can I use this styling method to style children of the actual control as well?
For example to set the bezelstyle of a Cocoa toolbar button to BezelStyle.TexturedRounded or to change the button size?
from eto.
Yes you can override the Generate() method on your ButtonAction for the toolbar and apply your style to the returned ToolBarItem. I may add a ToolBarItemStyle and MenuItemStyle to the BaseAction and ActionItem classes for easier use of styles there.
For general questions in the future please try to use the forums or irc, so others can find the answers as well. (;
from eto.
Do you mean this forums: http://picoe.ca/forums/ ?
If yes, then there is no generic Eto Forms board. Or do I miss something here?
from eto.
In the readme.md, there's a link to the forums and IRC under the Discussion section. Most people have been opting for IRC than the forums, but I monitor both. (;
from eto.
Related Issues (20)
- Terminal/TUI platform? HOT 3
- Add WinUI 3 platform HOT 6
- Is there a way to block button click handler calls in dialogs when they have focus and the user presses Enter? HOT 2
- [GTK] Upgrade to GtkSharp 3.24.24.95 HOT 6
- Handling Animated UI Controls
- Could not detect platform. Are you missing a platform assembly?
- Update dotnet to 7. HOT 2
- [GTK] Incrementing ProgressBar one-by-one maxes out at 28.
- GUI elements with Eto
- WPF ComboBoxCell: dropdown items not selected by mouse if only one or last row HOT 2
- [GTK] Scrollable do not receive OnMouseWheel
- Custom Controls ? HOT 3
- Support .NET Framework HOT 1
- Keyboard Input under Wayland
- MacOs : Cannot trigger an action when Enter is pressed HOT 2
- Sharing an executable version of Eto.Test HOT 2
- Remove XamMac2 platform
- Keys.Plus is obsolete although it is a separate key on german keyboards HOT 2
- [develop] .ToEto().ToNative() should return the original control HOT 2
- Form (Preview) does not work with F#
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eto.