I guess the title for this blog post answers 90% of what I had to say ;)
Yes, I have spent the last few days working on using the scripting object model for Illustrator CS2 to export the artwork to WPF/XAML. The code is entirely in C# / .Net 2.0 and uses the Illustrator CS2 COM Type Library. Now you may be wondering why I did one more Illustrator-XAML exporter, when there is already one by Michael Swanson. Couple of reasons:
I am also glad to announce that I will be making the code freely available on CodePlex. I have already setup the project here. Once I finish cleaning up the code I’ll upload it. If people are really interested, I could speed up things a little ;)
Here are some screenshots of the Exporter. I am using a 3rd party component for the Ribbon UI. I’ll be replacing that with a plain Winforms UI.
1. The artwork in Illustrator:
2. The application with the exporter XAML + preview The editor is just like in XamlPad. You can edit and see the changes happen dynamically to the preview. I am using the TextEditor component from the SharpDevelop project, which gets me the Visual Studio style syntax highlighting, code-folding etc…
3. The preview zoomed in:
4. Some text
Here is a quick rundown of exported objects: