ImageButton

I often wanted to create a button with an image inside. But this kind of control is not available in Xamarin.Forms.

So I created my own (like 1000 other developers) ImageButton. This control is very easy to use and understand and it works with Android, iOS and UWP.

Android

You also can use this control like a floating action button like in the screenshot or for other stuff.

For controls which uses resources (images) I also wrote an MarkupExtension for the specific SourceImage.

So the developer only has to write the name of the image in XAML and has to copy the image in the specific folders (android, iOS and UWP).

This helper and the ImageButton can be found at github:

https://github.com/WaiseFass/Xamarin.Playground/tree/master/ImageButton

Hinterlasse einen Kommentar

Erstelle eine Website wie diese mit WordPress.com
Jetzt starten
search previous next tag category expand menu location phone mail time cart zoom edit close