如何在 Expression Blend/WPF/Silverlight 中调整一组向量的大小?

发布于 2024-08-29 12:46:53 字数 251 浏览 1 评论 0原文

举例来说,我在表达式混合中创建了一些小方块。

然后,我通过选择它们,右键单击并选择“分组 -> 网格”将它们分组在一起,

所以现在它们位于网格中,我希望能够调整该网格的大小,然后它们会调整大小,但事实并非如此。不会发生这种情况,它只是调整网格大小,但向量保持不变。

有办法做我正在寻找的事情吗?

ps我知道你可以选择所有向量,然后调整它们的大小,但我正在寻找一种方法来调整一个容器的大小,而不是其中的所有对象的大小。

So say for example I created a few small squares in expression blend.

I then group them together by selecting them, right clicking and selecting "Group Into -> Grid"

So now that they are in the grid, I'd like to be able to resize this grid and then they would resize but it doesn't happen, it just resizes the grid but leaves the vectors the same.

Is there a way to do what I am looking for?

p.s I know you can just select all the vectors and then resize them all, but I am looking for a way to just resize one container and not all the objects in there..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情愿 2024-09-05 12:46:53

我也有同样的抱怨。我发现的唯一解决方法是在网格上执行缩放变换。

当您考虑向量如何工作时,这样做是有意义的。您并不是真的想弄乱这些点,只是想弄乱图形的大小或“缩放”。

选择网格,转到“属性”并修改“比例变换”值。

它将向您的网格添加类似的 xaml:

<Grid.RenderTransform>
    <CompositeTransform ScaleX="1.5" ScaleY="1.5"/>
</Grid.RenderTransform>

I have the same complaint. The only work around I've found is to perform a scale transform on the grid.

It makes sense to do this when you think about how vectors work. You don't really want to mess with the points, just mess with the size or "zoom" of the graphic.

Select the grid, go to the Properties and modify the Scale Transform values.

It will add similar xaml to your grid:

<Grid.RenderTransform>
    <CompositeTransform ScaleX="1.5" ScaleY="1.5"/>
</Grid.RenderTransform>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文