picoe / Eto

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

Custom Controls ? #2556

Closed RetroAndDev closed 9 months ago

RetroAndDev commented 11 months ago

This is a question about how, and it is possible to make custom control who render the same on all platform ? Like in WinForm or WFP it knows as user-control. Did there is a possibility to make custom controls with custom shapes, colours, rounded corner and other ?

Specifications

cwensley commented 11 months ago

Yes, use Drawable, it has an OnPaint event you can override to paint whatever shapes/etc you like, can optionally get focus, receive keyboard input, etc.

RetroAndDev commented 11 months ago

Nice ! Do you have an simple exemple of a button ? Or an image with rounded corner ?

cwensley commented 9 months ago

Sorry for the late response, but yeah I do! Check out the CustomButton/ImageButton implementation here.

Hope this helps. Closing the issue as resolved.