I've been trying to use the
FFImageLoading NuGet package to utilise SVGs (which for me, are embedded resources) in my project, and have been trying to use them with regular
<ImageButton/> elements. On the online docs, they say to do the following:
Which I have done in my
AppDelegate projects. But I still can't seem to get an SVG to work on a regular Image or ImageButton. I have tried the following attempts:
<ImageButton WidthRequest="50" Source="ExampleProject.SVGs.ContactPhone.svg"/> <ImageButton WidthRequest="50" Source="resource://ExampleProject.SVGs.ContactPhone.svg"/>
But neither of them work. Is there something I'm missing? It's not very clear how you do the code in the xaml side.
The Images work if I set the source programatically so it's nothing wrong with the packages being installed, but I want to get it to work inside xaml.
Thanks in advance,