使用 WPF Xamdockmanager 中的代码更改拆分窗格的位置
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.