Site Logo

Pixel-in-Gene

Exploring Frontend Development with Design / Graphics / Technology

XamlXporter 0.2 -- exports as Canvas and DrawingBrush

XamlXporter is a project I undertook (mostly as a pet project) to re-create what Michael Swanson did with his Illustrator Plugin. In other words, XamlXporter allows you to export your Illustrator artwork into WPF/XAML format. The exporter has been written entirely in C#, .Net 2.0 with a WinForms UI. It uses the Adobe Illustrator CS2 COM Type Library to talk to Illustrator. More information can be found on this earlier blog post.

I have updated this app to support a few extra features:

  • The output XAML is now formatted with indented tags so its very easy to read

image

  • There is an extra Options button on the toolbar where you can make a choice if you want to export with Canvas or DrawingBrush as the root tag

image

The output with DrawingBrush chosen looks something like this. Note the nice formatting ;-)

image

  • Some of the invisible changes are in the Exporter.Core project where I did some major surgery. I redesigned the visitor classes and got rid of lot of unnecessary code (I love when that happens!). Now the output generation is more streamlined and also makes it pretty easy for me to export with other root-tags.

Feel free to use this library/app in your own projects. Get the source and binaries from the project page:

XamlXporter on CodePlex

XamlXporter 0.2 -- exports as Canvas and DrawingBrush
Pavan Podila
Pavan Podila
January 11th, 2007