Reputation: 141
I have a Xamarin.Forms Shared project and I'm working on UI (XAML). I want to use SVG image as a button image in my app. The problem is that I don't know how to do that. I will be grateful if someone will show me how to do that step by step.
Upvotes: 8
Views: 6114
Reputation: 719
First convert svg file to android vector using the this link. Then add an android vector file (xml) like below:
And finally use this file as button Image
<Button Image="vector.xml">
Upvotes: 2
Reputation: 2246
You can convert SVG to XAML using Inkscape.
Upvotes: 3