Welcome to MSDN Blogs Sign in | Join | Help

Updated Add-In for Visio 2007 to Export to XAML

[Update 2008-02-06 2:32pm EST]

Published a new version on codeplex with some new features and a newer version of Theirry's XamlTune. Also scroll down for an example with a lot of text.

What to notice in this update

- Fills rendering improved (due to a change in XamlTune)

- The text sample illustrates some limitations in text conversion

 

 

Just before the Visio Conference 2008 began I published my first attempt at exporting XAML from Visio 2007. And within 12 hours, Thierry Bouquain hooked up his code and made the XAML output much better. I've now created third version with some extra UI to help with making the process easier and help me in debugging any problems.

The project has been published on codeplex: http://www.codeplex.com/VisioExportToXAML

Using the Add-In

image

 

Create or load a document, make a selection, then select File / Export Selection to Xaml

 

image

 

Select a filename and click Create XAML

 

image

 

Notes

  • The Add-In is very simple. It exports the current selection to SVG and then uses Thierry's XamlTune to get the XAML.
  • Text is exported as shapes.
  • When richly formatted text is used, you may see text rendering errors.
  • Overall works extremely well for shapes even with complex gradients
  • For some diagrams you may see that SharpVectors throws an exception when reading the intermediate SVG
  • Feature Wish: Retain text as text isntead of shapes (but keep an option to render to shape)

 

Example: Gradients

Original Visio

image

XAML rendered in Expression Blend

image

 

Example: Shapes

Original Visio

image

XAML rendered with the Windows Presentation Foundation Host in Vista

 

XAML rendered in in Expression Blend

image

 

Example: Text

 

Original Visio

image

XAML rendered in Windows Presentation Host in Vista

image

Published Wednesday, February 06, 2008 7:28 AM by saveenr

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# BioSensorAB » Updated Add-In for Visio 2007 to Export to XAML

Wednesday, February 06, 2008 11:08 AM by BioSensorAB » Updated Add-In for Visio 2007 to Export to XAML

# Add-In for Visio 2007 to Export to XAML

You've been kicked (a good thing) - Trackback from DotNetKicks.com

Wednesday, February 06, 2008 11:18 AM by DotNetKicks.com

# re: Updated Add-In for Visio 2007 to Export to XAML

Hi Saveen,

I've corrected XamlTune to export properly your last drawing. The screenshot is on my blog http://www.ucaya.com/blog/2008/02/06/VisioExportToXAML.aspx and the source are on my website. http://www.ucaya.com/products.aspx.

I think I will post XamlTune on codeplex soon.

Wednesday, February 06, 2008 1:10 PM by Thierry Bouquain

# An Add-in to convert Visio 2007 to XAML

A small utility(by Saveen Reddy )  to convert Visio 2007 files to XAML. It uses XAMLTune to parse

Wednesday, February 06, 2008 4:59 PM by .Net Adventures

# re: Updated Add-In for Visio 2007 to Export to XAML

Does this also work for Visio 2003? Please develop one.

Thursday, February 07, 2008 3:17 AM by someone

# re: Updated Add-In for Visio 2007 to Export to XAML

RE: About it working for Visio 2003

I'd love it if the code would just work on Visio 2003 but it just takes too much of my time to develop and test for two versions at the same time. I don't expect the code as written would work, but it wouldn't take somone much effort to re-implement an add-in for Visio 2003.

An alternative that one may find helpful: Visio 2003 does export to SVG. You can always use XamlTune directly to convert the SVG output from Visio into XAML.

Thursday, February 07, 2008 4:15 AM by saveenr

# Visio to XAML

Используем Visio, для создания изображения, потому что существует огромное множество готовых шаблонов,

Friday, February 08, 2008 6:54 AM by Віктор Шатохін [MSFT]

# Interaction Designers and Technical Illustrators Rejoice! There is now a Visio to XAML Exporter

Over at Saveen Reddy's blog , the announcement has went out of his new Visio to XAML export tool. This

Friday, February 08, 2008 11:25 AM by Techniques

# re: Updated Add-In for Visio 2007 to Export to XAML

XamlTune is now released on CodePlex. Thanks for your work, You helped me to improved my tool. Version 0.1 fixes a crash issue when converting one of your samples.

Friday, February 08, 2008 12:05 PM by Thierry

# Visio Export To Xaml: Now with an Installer

I added an installer program for VisioExportToXaml so that you can just try the export without being

Sunday, February 17, 2008 1:06 PM by Saveen Reddy's blog

# Visio Export To XAML

Saveen Reddy's blog : Updated Add-In for...

Monday, February 18, 2008 5:21 AM by OPC Diary

# Option for export not appearing

probably my dumb error ;-), but I see the export option on the welcome screen in visio, but after loading a document, the option is gone, even though its loaded and enabled through the trust center. Any ideas?

Monday, May 19, 2008 12:00 PM by Jin

# Windows Presentation Foundation Tools and Controls

Instead of writing individual blog posts for each WPF tool or control that I become aware of, I thought

Tuesday, February 10, 2009 12:35 PM by Mike Swanson's Blog

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker