AB4D Forum
ViewerSVG: XAML output is not always correct - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: ViewerSvg and Ab2d.ReaderSvg (https://forum.ab4d.com/forumdisplay.php?fid=6)
+--- Thread: ViewerSVG: XAML output is not always correct (/showthread.php?tid=4045)



ViewerSVG: XAML output is not always correct - Miloslav Pojsl - 10-27-2017

Hallo all,
we create svg icons in Inkscape application and we use ViewerSVG for export to XAML for using in MS Visual Studio (WPF application development).
Sometimes the ViewerSVG does not render SVG data correctly. In attachment is shown original svg (rotplus_color.svg) generated by Inkscape
(Inkscape_original.png). SVG_In_MSInternetExplorer.png shows how it is rendered by MS Internet Explorer (correctly). When I load this svg file
by ViewerSVG I get following: (see screenshots SVGViewer1.png and SVGViewer2.png). Both cases are differed in (checked / unchecked) function "Transform shapes".
As you can see both cases are rendered wrong. XAML output is in application shown by the same way.
Do you know what can be wrong and what can I solve this problem? Thank you for any advice.


RE: ViewerSVG: XAML output is not always correct - abenedik - 10-28-2017

Thank you for the sample file.

The problem was caused because a svg element had both "inkscape:transform-center-x" and "transform" attributes. This was not correctly read with ReaderSvg.

I have fixed that I will send you a link to a pre-release version as a private message.

This fix will be also part of the next version of ReaderSvg that will be published in November.