使用 gridsplitter 重置网格中的列定义?

发布于 2024-12-17 18:53:15 字数 224 浏览 2 评论 0原文

我有一个带有两列的网格,中间有一个网格分割器。所以用户可以使用自己划分的网格。现在我寻找一种将网格重置为启动的方法(两列的宽度相同)。

我得到了一个没有 Gridsplitter 的解决方案:列的宽度属性采用样式,并且可以使用按钮和 InteractionTrigger 进行切换。但当网格分割器被移动时,这种方法就不起作用了。

Gritsplitter 在网格中到底做什么?

多谢。

i ve got a grid with two columns and a gridsplitter in the middle. So the user can use his own division of the grid. Now i search for a way to reset the Grid to start (both columns are in the same width).

A solution without the Gridsplitter i ve got: the Width-Property of the columns are in styles and these are switchable with a button and a InteractionTrigger. But this way doesn't work when the gridsplitter have been moved.

What do the Gritsplitter exactlly in the grid?

Thanks a lot.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文