Can you load svg in Maui Xaml? #3661
Replies: 2 comments
-
You absolutely can, but they get turned into PNGs to work on all the platforms. In my MAUI app I have the following file:
But in my XAML I refer to it as a png and some auto magic happens to make that work across all the platforms:
If you're using PNGs to make scaling easy then this is perfect and is working really well for me. If there is another technical reason you want SVGs, then maybe this won't be fit all your needs. |
Beta Was this translation helpful? Give feedback.
-
As per above post it is a automatically convert SVG file to PNG file. |
Beta Was this translation helpful? Give feedback.
-
Hi
In xamarin forms we use SVG a lot instead of pngs using FFImageloading. Does MAUI have the ability to load SVG?
Any examples out there? I am using MAUI with XAML
Thanks
Beta Was this translation helpful? Give feedback.
All reactions