问题描述
但它不适用于Stretch ...这使它几乎无用......矢量图像的点实际上是拉伸到任何大小......
检查我的应用:和
文件卡
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 andFile Cards
推荐答案
如果我将一个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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!