views:

39

answers:

2

I found some freeware XAML icons that are perfect for my Silverlight project online (http://www.grafile.com/Product_Page.aspx?id=1.36), but these happen to be using WPF XAML, which is not compatible with Silverlight (at least as of version 4). Can anyone recommend a tool for converting from WPF XAML to Silverlight equivalent?

Thanks!

A: 

http://wpfslguidance.codeplex.com/

Sander Pham
Thank you, this is a good summary document, but it does not help me. I already know the formats are different, but I also know that differences can be overcome -- there are many commercial icon libraries that offer both SL and WPF versions of icons. My question remains, is there a tool I can use to convert between formats?
Michael Teper
A: 

I don't know of any tools that will do direct WPF to Silverlight XAML conversion. However, if you have Microsoft Expression Design installed you could open up one of the other source formats (bmp, png, jpeg, photoshop, illustrator) of those icons and export to a Silverlight Canvas.

I'm sure recreating the XAML for these icons will not be perfect, specifically you might have to do some of your own work to get Silverlight visual states to work properly for mouseover, etc. You should at least be able to open the icons up, tweak them if need be, and export them as paths on a canvas which would be compatible with Silverlight.

Dan Auclair
Dan, I am not sure I follow you. These icons are already in a XAML (vector) format. I can't find a way to get Expression to open a XAML file.
Michael Teper
The site you specified to download the icons from contained the same icons in many other formats, such as photoshop, illustrator, and PNG. I was saying as a workaround you can download them in one of these other formats that can be opened by Expression Design. Expression Design can then export these to XAML as a Silverlight Canvas.
Dan Auclair