使用 WPF Xamdockmanager 中的代码更改拆分窗格的位置

发布于 2024-11-14 18:44:26 字数 92 浏览 5 评论 0原文

我正在使用 Infragistics 提供的 Xamdockmanager。我想使用 C# 代码将拆分窗格的位置从底部更改为另一个拆分窗格的顶部位置。任何帮助将不胜感激。

I am using Xamdockmanager provided by Infragistics. I want to change the location of split pane from bottom to the top position of another split pane using C# code. Any help will be appreciated.

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

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

发布评论

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

评论(1

东风软 2024-11-21 18:44:26

SplitPane 在添加到 xamDockManager 后就不会重新定位。您需要创建一个新的 SplitPane,将其添加到目标 SplitPane 的窗格集合中,从原始 SplitPane 的窗格集合中删除 ContentPane,然后将 ContentPane 添加到新窗格集合中。如果您遇到问题,可以尝试在 xamDockManager 论坛 上发布示例项目。您还可以提交建议以添加 Move 方法。

A SplitPane isn't meant to be repositioned once it has been added to a xamDockManager. You would need to create a new SplitPane, add it to the target splitpane's panes collection, remove the ContentPane's from the original SplitPane's Panes collection and add the ContentPanes to the new one. If you have trouble you can try posting a sample project on the xamDockManager forums. You could also submit a suggestion for adding a Move method.

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