Welcome to MSDN Blogs Sign in | Join | Help

Updated Adobe Illustrator to XAML Plug-In

It's been five months since I posted an Update on My Illustrator Plug-In and Flash to XAML Conversion Tool. When I wrote that post, I was in deep preparation for our 2008 Professional Developers Conference, and I didn't have any time to focus on the plug-in. On top of that, I have to admit that I wasn't very motivated to dive back into a C++ project; while I used to write C/C++ all day long, that was many, many years ago. I've since been spoiled by managed code. But I digress...

I found my project files, converted them to Visual Studio 2008 (yes, it's been that long), and spent some time fixing two issues that I've received a lot of e-mail about:

  • The first issue was related to PathGeometry changes in Silverlight 2. Chris Idzerda of Vertigo Software explains the problem in a recent post. This plug-in bug made it more difficult to use the exported XAML with Expression Blend. The good news is that the problem has been addressed in this update, and you should be able to add the exported XAML files directly to your Blend projects without issue.
     
  • The second issue was related to the insane numeric precision in the exported XAML. I was using the default floating point format (%f) which outputs 6 digits after the decimal point. Not only was this precision excessive and unnecessary, but it resulted in large exports. I've modified the format to output 3 digits after the decimal point (%.3f) which should still be more than enough precision, even for close-up work. Here's an example of output from versions 0.17 and 0.18 for comparison:

    0.17: <Path Data="F1 M 71.924805,320.608887 L 44.380859,179.062500 L 120.126465,175.236816 L 117.831055,269.345703 L 138.489258,267.815430...
    0.18: <Path Data="F1 M 71.925,320.609 L 44.381,179.063 L 120.126,175.237 L 117.831,269.346 L 138.489,267.815...

    On one of my larger test files, version 0.17 exports a 3,457KB XAML file, and version 0.18 output the same file at 2,987KB, a 14% savings.

The last small tweak I made was to rename the Silverlight and WPF formats so that they're next to each other in the "Save as type" drop-down list in the Export dialog. You'll now see "XAML for Silverlight (*.XAML)" and "XAML for WPF (*.XAML)". I hope this makes it easier to locate the formats in the list.

I've also verified that the plug-in works properly with Adobe Illustrator CS4.

Download version 0.18 from the Adobe Illustrator to XAML Export Plug-In page.

Published Saturday, January 31, 2009 12:29 PM by mswanson
Filed under:

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

# Anith &raquo; Updated Adobe Illustrator to XAML Plug-In

Saturday, January 31, 2009 5:19 PM by Anith &raquo; Updated Adobe Illustrator to XAML Plug-In

# re: Updated Adobe Illustrator to XAML Plug-In

It's great to see that this is still under development. If it's not too late for a feature request, something really key would be to include layer names as x:Name attribute values rather than as comments in exported XAML.

Tuesday, February 03, 2009 2:30 AM by Josh Santangelo

# Adobe Illustrator zu XAML – neue Version des kostenlosen Plug-Ins

Kaum bin ich entnervt nach fast zwei Stunden Stau endlich im Office angelangt, schon heitert mich mein

Tuesday, February 03, 2009 3:40 AM by Das Interactive Design & Expression Studio-Blog

# Mike Swanson's XAML Plugin for Illustrator Updated

URL : http://blogs.msdn.com/mswanson/archive/2009/01/... Mike Swanson has updated his excellent plugin

Thursday, February 05, 2009 5:28 PM by Community Blogs

# re: Updated Adobe Illustrator to XAML Plug-In

Awesome! this plugin has been _invaluable_ for the past couple of years - I couldn't have done my job without it. Thanks for keeping it updated :)

Thursday, February 05, 2009 7:20 PM by felixthehat

# 6 Tips For Designers For Translating Your Comps Into XAML

4thFebruary2009,09:36ambyMatthiasShapiro

Thursday, February 05, 2009 8:14 PM by He,YuanHui - khler

# Silverlight Tools and Resources

Last updated: January 11, 2009 While it is impossible to create an extensive list of all resources available

Wednesday, February 11, 2009 9:27 AM by Katrien's MSDN Blog

# WPF/XAML News – 2009/02/13

Events Mix09 WPF Workshop: Jaime/Robby/John/… “ Hiking Mt. Avalon at Mix09 ”. Sounds great. WPF Jaime

Friday, February 13, 2009 9:38 AM by Rob Relyea - XAMLified

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker