SVG to XAML converters? EMF to XAML converters?
Hi,
Does anyone know of any SVG to Xaml vector graphic converters that work well and work with the release version of WPF?
I found a project by Don Demsak (http://www.gotdotnet.com/workspaces/workspace.aspx?id=0e769f27-e0d8-4592-b0a9-69fe8bec3b2e) called SVG2XAML but it hasn't been touched in 3 years.
I found references to something from a website called xamlon.com, but that website appears to be dead (it returns a generic redhat apache setup page.
Can anyone offer a good suggestion (preferably command line driven but I'll take anything)?
How about a EMF to XAML converter? Again, I'd prefer a command line driven tool, if possible. I did find http://lab.aspitalia.com/15/EmfToXaml-Beta.aspx -- has anyone tried it? Any other ideas?
Thanks!
Answers
I'm not aware of anything command-line driven that will convert from SVG to WPF RTM-compliant XAML. However, you can open SVG files in Adobe Illustrator (which has a 30-day trial) and export them using my Illustrator export-plug in. I've had others use this method with great success. Also, MOBIFORM's Aurora product used to have strong SVG support. I haven't tried their latest version, but that's also worth investigating.
In addition to Rob's suggestion, there are a few more conversion tools here that I haven't added to my all-up page yet: http://blogs.msdn.com/mswanson/archive/2006/11/28/more-wpf-conversion-tools-including-vb6-to-xaml.aspx
Hope this helps!
All Replies
I usually look at this page by Mike Swanson for known XAML converters: http://blogs.msdn.com/mswanson/articles/WPFToolsAndControls.aspx
I'll point Mike to this post, in case he can help additionally.
Thanks, Rob Relyea
Program Manager, WPF Team
http://rrelyea.spaces.live.com- I needed to convert a logo from SVG to XAML a while back and couldn't find anything to do it. I would up making a really crude utility that converts an SVG path into a XAML path (since that was the only function I truly needed). It doesn't work in all cases and it is really crudely implemented, but if you are interested I can make the source available (actually, I'll have to see if I can still find it first...)
I'm not aware of anything command-line driven that will convert from SVG to WPF RTM-compliant XAML. However, you can open SVG files in Adobe Illustrator (which has a 30-day trial) and export them using my Illustrator export-plug in. I've had others use this method with great success. Also, MOBIFORM's Aurora product used to have strong SVG support. I haven't tried their latest version, but that's also worth investigating.
In addition to Rob's suggestion, there are a few more conversion tools here that I haven't added to my all-up page yet: http://blogs.msdn.com/mswanson/archive/2006/11/28/more-wpf-conversion-tools-including-vb6-to-xaml.aspx
Hope this helps!
I have written a class library that can read svg file and open its elements in wpf application.
Currently the library can be used only in code and not in xaml but this should not be a big draw-back.
I am also writing a svg to xaml exporter and than I am planning to create a ReaderSvg user control that can be used only in xaml.
Read more on www.wpf-graphics.com/ReaderSvg.aspx.
Outstanding -- I'll be grabbing a copy right away to play with this!
Thanks for your efforts on this.
One question though. Your website doesn't talk about any limitations to the SVG reader. Can you convert everything in an SVG file directly to XAML or are there limitations or ideosyncracies we should be aware of?
- hello
is it any way to convert xaml to svg
that is i want to export canvas as svg...
plz help
Vineeth

