# Tuesday, February 05, 2008

A Second Attempt at Exporting XAML from Visio 2007

This morning while checking my daily feeds, I saw on Saveen Reddy's blog a post dealing with Visio and Xaml Export. Saveen Reddy uses svg export feature from Visio and Andrej Benedik's library for converting svg to Xaml. The result is good for common shapes but gradients are not handled properly.
Some times ago, I developped a svg to xaml converter based on SharpVector library. I mainly use this tool for working on silverlight projects. It reads svg input convert it to xaml and can manipulate xaml objects. (Replace rectangle geometries with Rectangle, set canvas as a bounding box of inner elements, remove default values,...).
After reading this post, I've just plug my convert library and here are the results :

XamlTune Export2

VisioExportToXaml-(2008-02-04)1.zip (325,29 KB)

Edit: Empty element names are now ignored. Thanks Saveen.

#    Comments [2] |
Tuesday, February 05, 2008 5:26:57 PM (Romance Standard Time, UTC+01:00)
Thierry, Excellent work!

Only one issue remains: When the XAML is saved the root Canvas element's Name attribute is set to "". This prevents it from being loaded by the "Windows Presentation Foundation Host" in Vista.

If the name attribute can be set to some value then the document loads in Vista and everything works.
Tuesday, February 05, 2008 5:54:07 PM (Romance Standard Time, UTC+01:00)
Bug corrected.
Thierry
Comments are closed.