Although Xamarin.Forms includes a Button control with quite a few ways to customize its layout, I needed a more flexible button for a side project, that required two things the default implementation could not deliver: A round shape and a way to catch when a user presses and releases the button and for how long. So I ended up with creating a new control and contribute it to the community.

What does it do differently?

The FlexButton control I wrote, supports events for different states, color overlays and adjustable shapes and paddings. You can define if you want text, an icon or both in your button, which color they should have in normal- and pressed state, which size, padding or border-radius it should have and more.

For more details, bug reports and feature request, please check out the GitHub Repository. You will also find a sample project to play around with.

If you want to use it in your projects, simply add the NuGet package to your Xamarin.Forms project and add the control to your XAML layout.



Robin-Manuel Thiel

At daylight, Robin-Manuel talks about new IT trends and development. But at night he turns into a tinker and developer which sometimes leads to insufficient sleep. He loves cool technologies, cross-platform and everything with a power-plug or IP address.

1 Comment

Eduardo Hitschfeld · October 9, 2018 at 21:20

Hi, i am using this nugget, is amazing, thank you very much.
It works fabulous on android but i have not found a way to make its works on IOS.
Here is the error
https://textsaver.flap.tv/lists/27bo

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.