Using SVG files like PNG files in Windows Phone

2019-08-15 08:49发布

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"/>

1条回答
爷、活的狠高调
2楼-- · 2019-08-15 09:28

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.

查看更多
登录 后发表回答