WPF MDI 子项
这个问题以前已经发布过,但我找不到好的答案。
我希望在我的 WPF 应用程序中使用 MDI 子项。我希望这些孩子完全符合 WPF 标准。
.Net WPF 不再有 MDI 子项(主窗口中的窗口)。有人说这是因为设计已经过时,GUI 应用程序不应该这样设计。这些人可以不回复这篇文章。我知道我需要什么。 :)
WPF MDI 有哪些(最好是免费的)替代品? 他们会与 MVVM 一起工作吗?
编辑:人们 - 不要投票支持“MDI 不好”的评论。我特别要求人们避免这种情况。我要求使用 MDI 窗口,而不是被告知不要使用 MDI 窗口。
This question has been posted before, but I can't find a good answer.
I want MDI children in my WPF application. And I want those children to be fully WPF compliant.
.Net WPF doesn't have MDI children (windows within main window) any more. Some say it’s because the design is obsolete and GUI apps shouldn't be designed that way. Those people can refrain from answering this post. I know what I need. :)
What (preferably free) alternatives is there for WPF MDI?
Will they work with MVVM?
EDIT: PEOPLE - don't vote up comments that say "MDI IS NOT GOOD". I specifically asked people to avoid that. I'm asking for MDI windows, not to be told not to use MDI windows.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道您不想听到这个,但是 MDI 基本上旨在复制桌面隐喻在应用程序的主窗口内,这对最终用户来说有点令人困惑,因为它涉及多个级别的窗口管理:
基于选项卡的界面通常被认为是 MDI 的更好替代方案。您可能想要使用 TabControl 类并阅读 MSDN 杂志上 Josh Smith 的 MVVM 文章,其中演示了如何在 TabItems 中托管您的视图。
I understand you don't want to hear that, but MDI basically aimed to duplicate the desktop metaphor inside the application's main window, and that was a little confusing to end users because it involved several levels of window management:
Tab-based interfaces are generally considered as a better alternative to MDI. You might want to use the TabControl class and read Josh Smith's MVVM article on MSDN Magazine, which demonstrates how to host your views in TabItems.