Quantcast
Channel: how to stretch/resize svgs in uwp's xaml? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

how to stretch/resize svgs in uwp's xaml?

$
0
0

Since the creators update came out, uwp can use svg images as briefly explained here (minute 3).

I have this svg (48x48) and i can use it fine, if (and only if) i set the image's width&height to 48 and the strech to none:

<Image Source="ms-appx:///Assets//check.svg" Height="48" Width="48" Stretch="None"/>

If i set the stretch to fill, the image disappears. If i increase the width and height i can see that the icon is pinned to the upper left corner of the image (screenshot with a different svg but same size). Isn't Stretch=Fill and a fixed height/width the intended way to scale an image?

It looks to my as if the stretching algorithm does not grasp that my svg is supposed to be 48x48. Am i doing it wrong, or are there workarounds?


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images