[UWP] [RS2:1703]无法拉伸SVG

编程入门 行业动态 更新时间:2024-10-23 08:23:27
本文介绍了[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

本文发布于:2023-11-10 15:58:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575812.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:UWP   SVG

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!