Inkscape to support XAML export - Jon Galloway

Inkscape to support XAML export

Today, Adam Kinney gave me the tip off to some cool news: Inkscape is adding XAML export.

Great, what's Inkscape? Glad you asked! Inkscape is an open source vector graphics editor, like Adobe Illustrator. Rather than drawing in pixels (like you'd do in Photoshop, Paint.NET, etc.), you're drawing in vectors. Inkscape is a little unique in that it uses SVG (scalable vector graphics) as its base format. SVG is a W3C standard, with pretty good support in most non-IE browsers (check out SVG Tetris in Firefox 1.5 or higher). It's unfortunate that IE doesn't (and likely never will) support SVG, since browser support for standards based vector-based graphics and text could do so much for the web.

Although the drawing primitives in XAML are very similar to SVG, up until now there hasn't been a really solid way of developing assets in SVG and moving them to XAML.

Right now, there are only two real ways to do any serious design in XAML:

  1. Buy Expression Blend and Expression Design ($599)
  2. Buy Adobe Illustrator ($599) and use the XAML export plugin

Now that Inkscape is picking up XAML export, there's a third way that doesn't start with any buying.

Why this is important

Lots of reasons:

  • It’s nice to be able to say that you can create full featured Silverlight apps without having to buy a product, in the same way that a free csc.exe and the Visual Studio Express products really round out the .NET platform. Obviously, the Expression products are compelling for XAML creation, but it’s nice for the Silverlight platform to show that it’s not directly tied to a product.
  • Since Inkscape is cross-platform (running on Windows, Linux, and Mac OSX), this opens up cross platform development quite a bit. Now you could create Silverlight apps on OSX with Inkscape and TextMate (or whatever it is they code in these days), then host the app on Linux. I'm guessing that a small minority will actually use Inkscape to do Silverlight / Moonlight development without running Windows, but the fact that they could suddenly makes the Silverlight platform fee a lot friendlier.
  • Inkscape has some really cool features that aren't in the Expression products yet. For example, Inkscape has pretty nice bitmap tracing, and the tile cloning is very powerful. Example:

Let's try it out!

Tim Heuer says the XAML export is already in the Inkscape nightly builds, so let's grab it call his bluff. The Inkscape nightly builds are available as a 30MB 7z archive, so you'll need 7-zip to extract it. 7-zip is a great program with significantly better compression than the standard zip format, so it's worth grabbing it if you don't already have it.

I kept my test pretty simple - a solid background, a bunch of translucent stars, and some text that I'd converted to paths.

Inkscape-XAML-Export-1

Next, I save the drawing, selecting XAML as the output format.

Inkscape-XAML-Export-3

Now I've got a XAML file, which can be opened directly in IE7.

Inkscape-XAML-Export-2

I won't bore you with the XAML itself - since the text was converted to paths, it's really verbose. But it's valid XAML, and no different than I'd expect to see if I'd created it in Expression. No, this isn't being hosted in Silverlight, but I'd fully expect that it should work without any problems - maybe if I get time I'll give that a shot.

Inkscape-XAML-Export-4

This is very alpha right now. I've run the Inkscape nightlies many times over the past two years and they've generally been pretty solid, but it wasn't hard to get the XAML export to crash. To say that another way, it took several tries to come up with a simple design that wouldn't cause a crash when I exported it. For this example, I kept with very simple primitives and converted my text objects to paths. However, it's definitely working, and as Tim says they're hoping to have a stable build the Southern California Linux Expo in February.

Combined with the Moonlight plugin, it should be possible to design, develop, host, and view a Silverlight on Mac or Linux without ever firing up Windows. Not that you should, necessarily, but you could. Neat.

Published Thursday, January 10, 2008 2:49 AM by Jon Galloway

Comments

# Inkscape to support XAML Export

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

Thursday, January 10, 2008 9:07 AM by DotNetKicks.com

# re: Inkscape to support XAML export

Wow, this is really cool!  I can't wait for a stable build.  

But just because you can create the vectors, doesn't mean you have a silverlight app does it?  What about the animation stuff you can build with Expression Blend?  There still isn't a free option for that is there?

Thursday, January 10, 2008 11:04 AM by Lance Fisher

# Jeffrey Stedfast: Inkscape to support XAML

Joseph Hill , our new Mono PM here at Novell, just noted to me that Inkscape is adding XAML support

Thursday, January 10, 2008 1:30 PM by 工程師的雞排攤

# re: Inkscape to support XAML export

are you really getting crash on export? or just some things don't get exported? in any case please report a bug at bugs.launchpad.net/inkscape

Thursday, January 10, 2008 1:45 PM by bbyak

# re: Inkscape to support XAML export

Thanks for this post! I'm looking forward to having a stable build. Trying to launch the inkscape Win32 build in Vista crashes on me.

FYI. There is also a XAML exporter for Fireworks that the guys from Infragistics put together.

www.infragistics.com/.../Fireworks_XAML_Exporter.aspx

Thursday, January 10, 2008 3:01 PM by Caleb Jenkins

# re: Inkscape to support XAML export

That's great news, perhaps I'll be able to convince my colleague now who looks at Silverlight as if it's a lump of poo. (Because it's related ot Microsoft or because it brings developers and designers closer together... I don't know :p)

Nice job !

Thursday, January 10, 2008 5:51 PM by TimothyP

# re: Inkscape to support XAML export

Everybody now understands open standards are key.

Use SVG in-line and have a link to the XAML version. Maybe you can put Inkscape at the server doing this automatically, so you only have to take care of the SVG content.

Thursday, January 10, 2008 6:18 PM by stelt

# links for 2008-01-11 | Lazycoder

Pingback from  links for 2008-01-11 | Lazycoder

Friday, January 11, 2008 5:23 AM by links for 2008-01-11 | Lazycoder

# No news as of late - but Inkscape now has XAML » Thursday Night

Pingback from  No news as of late - but Inkscape now has XAML » Thursday Night

# re: Inkscape to support XAML export

Nice informative post Jon.

Monday, January 14, 2008 2:40 PM by Peter Bromberg

# Silverlight Cream for January 14, 2008 -- #170

Free SL 1.0 Training at Lynda.com & view of facilities from Mike Harsh, Jon Galloway describes Inkscape's

Monday, January 14, 2008 4:12 PM by Community Blogs

# re: Inkscape to support XAML export

I'm not sure why you said that IE doesn't and likely never will support SVG.  I'm able to open SVG documents in IE (and have been for years).

Monday, January 21, 2008 12:00 PM by joefitz

# re: Inkscape to support XAML export

@joefitz You may have installed an SVG viewer plugin, like the Adobe viewer. IE has never had native support for SVG, and there have been no announcements saying that it will ever be added.

wiki.svg.org/Internet_Explorer

Adobe has announced that they were discontinuing their SVG viewer in 2006. While it's still available for download, they're not developing it, and it will be removed from their site in 2009.

Even if there are SVG viewers available, very few people have them installed.

Monday, January 21, 2008 1:40 PM by Jon Galloway

# HowTo: Windows Presentation Foundation (Einstieg, Infos, Programme, Überblick) | Code-Inside Blog

Pingback from  HowTo: Windows Presentation Foundation (Einstieg, Infos, Programme, Überblick) | Code-Inside Blog

# re: Inkscape to support XAML export

Awesome news. Last year I was looking for a piece of software who quickly replaces CorelDraw in my office. Installed Inkscape and love it at once. With this little tool I won a small contest to design a logo in my company.

Two thumbs up!

Wednesday, February 06, 2008 11:15 AM by Eklipse

# Opening Adobe Illustrator (AI) files when you don't have Adobe Illustrator

You've been waiting for the design firm to send final artwork. The e-mail finally arrives... Uh, oh.

Sunday, February 24, 2008 4:51 AM by Jon Galloway

# Inkscape vai exportar para XAML

copy-paste:   Inkscape to support XAML export Today, Adam Kinney gave me the tip off to some

Thursday, May 15, 2008 8:46 AM by o UAU nosso de cada dia

# re: Inkscape to support XAML export

WHY is my question - WHY??????????????

I don't follow - why would I want to output something like that in XAML, instead of, say, just a jpg or png or something?

Forgive the ridiculous nature of my question, please - I truly don't understand!  

Can you please elaborate a tiny bit on why someone would want to output images in XAML...

Thanks a lot!

Sunday, January 18, 2009 9:29 PM by trev

# re: Inkscape to support XAML export

You would do it if you are developing silverlight or wpf apps. These technologies are utilizing an UI-Language called XAML which is an XML format. You could also use just png or something like that, but xaml is much more flexible, i.e. you can adress just a single path in your XAML Object, maybe the shadow from within your application, wether the whole png.

Monday, August 17, 2009 9:28 PM by bafghane

# re: Inkscape to support XAML export

Hello there.

I have something to say, about AloeVera, something about which you wrote above, about health and weight loss management... For a long time, I and my   friend use the products of the forever living products company. We always see the nice results and also we earn money for our families and we are happy. My friend works with AloeVera in the company of flp has more than 5 years (My friend works ONLY in the forever living and has a wife and three children). I know Aloe vera products for skin care for a long time, but a year ago, began working as a distributor in the FLP.

Of course, the job is not easy, but in no other case, you really can earn so much money with so much fun and good smiling faces around...

So if you want to discuss something about your post, and about my experience with aloe vera products for health, I'll always be glad to talk.

Best regards from Washington and have a nice day!

Andrew - Aloe Vera Distributor

Thursday, October 01, 2009 12:55 AM by Aloe Vera Distributor - myflp.org

# Weight Loss » Blog Archive » re: Inkscape to support XAML export

Pingback from  Weight Loss  » Blog Archive   » re: Inkscape to support XAML export

# re: Inkscape to support XAML export

I used to be just seeking at associated website content material for my undertaking investigation when I occurred to stumble upon yours. Thanks for the practical data!

--------------------------------------------

my website is <a href="zeroskateboards.org/">birdhouse skateboards</a> .Also welcome you!

Saturday, December 04, 2010 12:16 AM by tech deck skate boards

# re: Inkscape to support XAML export

Never underestimate your power to change yourself!

-----------------------------------

Saturday, December 18, 2010 12:46 PM by ipad app demo

# re: Inkscape to support XAML export

-----------------------------------------------------------

You really are a incredibly smart person!

Tuesday, January 04, 2011 2:43 AM by cool ipad case

# re: Inkscape to support XAML export

-----------------------------------------------------------

"As such, whenever I browse a similar write-up I only wish the specific OP incorporates some world wide web picture somewhere."

Sunday, January 09, 2011 1:55 AM by ipad accessories

# re: Inkscape to support XAML export

I recently came during your internet site and happen to become understanding along. I assumed I would personally leave my preliminary comment. I really don't know what to say besides that We've cherished examining. Respectable website website. I'm going to maintain visiting this weblog genuinely regularly.

Thursday, February 10, 2011 5:58 PM by anti virus software reviews

# re: Inkscape to support XAML export

I'll add the obvious update to this article- IE9 does now support SVG (and also Canvas) natively. Not that we didn't know that ;)

Wednesday, June 08, 2011 10:01 PM by setiri

# re: Inkscape to support XAML export

I generated the Xaml with no problems but when I placed it inside a canvas in a WPF application it didn't like the source attribute. Error was "URI prefix is not recognized."

Tuesday, December 27, 2011 3:05 PM by Jim

Leave a Comment

(required) 
(required) 
(optional)
(required)