Farhan Ghumra
Farhan Ghumra

Reputation: 15296

Convert SVG to XAML

I tried InkScape & XPS method, but it doesn't give me correct XAML.

Can anyone please convert this SVG to WinRT compatible XAML ?

Upvotes: 6

Views: 30170

Answers (4)

Drew Noakes
Drew Noakes

Reputation: 310897

Using Inkscape 0.91 it's possible to open an SVG file and directly save as XAML.

Select Microsoft XAML file as the file type:

enter image description here

Note that in InkScape 1.3, XAML export was moved to an extension and must be installed separately.

Upvotes: 17

aslet
aslet

Reputation: 111

I recommend using SvgToXaml.

A simple and easy tool where you can convert SVG to XAML, and a built-in render/viewer of the SVG file.

Upvotes: 3

Tim Heuer
Tim Heuer

Reputation: 4301

Take a look at this and see if it works: https://gist.github.com/timheuer/6443390

Method (yes, superhack):

  • Use Inkscape to save as PDF
  • Rename the Filename extension from PDF to AI
  • Use Expression Design to open AI document
  • Export to Silverlight Canvas

Upvotes: 12

Meow
Meow

Reputation: 180

I'm not able to comment on the related answer, but I found it even easier to just open the SVG in Inkscape, copy and then paste it on Expression Design. Then select Copy to XAML (or Ctrl + Shift + C).

Upvotes: 1

Related Questions