Rounded corners #2528
Replies: 2 comments
-
Changing the style of buttons or other controls require platform-specific code. Some platforms only have limited styling (e.g. macOS only has certain modes but no customization). An alternative is to create your own |
Beta Was this translation helpful? Give feedback.
-
thanks @cwensley , i was looking for a way to just override the OnPaint in a button for instance, but seems the drawable class is the way to go. This however isnt compatible with dialog forms for instance that require accept button and cancel buttons etc. Is there planned any way of overriding OnPaint on other objects than the Drawable? Or a Drawable based button? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'd like to ask how you create rounded corners best with Eto. Both on a window but also on other objects such as buttons.
I've seen examples in winforms by overriding OnDraw and in WPF by encapsulating objects in a object.
However i haven't managed to do it successfully in Eto(wpf).
In Eto.Styles.Add I can add a thick corner for a button for instance, but I can't see any controls to make the corners round.
Any clues? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions