In How to bind Xamarin.Forms Shapes Path Data to a string I expain how to convert an SVG path (stored in a resource file in this case) to the
Data property of a
Now it would be useful to make the conversion code reusable across multiple views in the application.
example of SVG string data rendered in a Path
Here’s how to do it:
Create a value converter
Instantiate the converter in the resource dictionary.
Register a namespace where the converter is located, for example:
Reference the converter with the
StaticResource markup extension