SVG to XAML or Canvas (from SixPairs.com)
Happy to see more work on file converters from other formats to XAML. See “SVG to XAML Converter” for details on these 4 apis:
- public Canvas SvgToCanvas(string svgString);
- public string SvgToXaml(string svgString);
- public Canvas SvgFileToCanvas(string svgFilePath);
- public string SvgFileToXaml(string svgFilePath);
I like to see converters support targeting both XAML and an Object graph directly. System.Xaml.dll (in .NET 4) provides a great foundation to support both, more easily than doing it yourself.