[UWP] [RS2:1703]无法拉伸SVG [英] [UWP][RS2:1703] Can't stretch an SVG

查看:85
本文介绍了[UWP] [RS2:1703]无法拉伸SVG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

但它不适用于Stretch ...这使它几乎无用......矢量图像的点实际上是拉伸到任何大小......


检查我的应用: Speech Central
文件卡

But it doesn't work with Stretch... Which makes it almost useless... The point of the vector images is actually in stretching to any size...


Check my apps: Speech Central and File Cards

推荐答案

它以什么方式对你不起作用?你能提供细节吗?你是否设置了Image控件的Stretch属性?

In what way does it not work for you? Can you provide details? Did you set the Image control's Stretch property?

如果我将一个SvgimageSource放在一个Image控件中,它会根据Image控件的Stretch属性伸展。我没有伸展的唯一方法是将Stretch设置为"None",这是预期的。

If I put an SvgimageSource in an Image control it stretches as I expect based on the Image control's Stretch property. The only way I've gotten it not to stretch is if I set the Stretch to "None", which is expected.

这将我的SVG拉伸到适合窗格的最大值当我调整窗口大小时:

This stretches my SVG to the largest that fits in the pane as I resize the window:

       <Image x:Name="image1" Stretch="Uniform" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"></Image>
  

这不会延长SVG,因为我告诉它不要:

This does not stretch the SVG because I told it not to:

        <Image x:Name="image1" Stretch="None" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"></Image>
 





这篇关于[UWP] [RS2:1703]无法拉伸SVG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆