Michael
Michael

Reputation: 1285

Using SVG files like PNG files in Windows Phone

I have googled for some answers, but it didn't come up with anything of use for me. Is it possible to use svg files like png (jpeg, or any other raster graphic format) in Image control in Windows Phone 8? With the result similar to the following (not working) code:

<Image Margin="0,0,0,-19" Source="/Assets/SVG/image.svg" 
Stretch="Fill" HorizontalAlignment="Center"/>

Upvotes: 1

Views: 4509

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292575

I don't think SVG is natively supported in Windows Phone (except, perhaps, in IE10 mobile). However, you can easily convert an SVG image to XAML, using tools like Inkscape.

Upvotes: 4

Related Questions