WPF MDI 子项

发布于 2024-10-09 14:04:10 字数 325 浏览 0 评论 0原文

这个问题以前已经发布过,但我找不到好的答案。

我希望在我的 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 技术交流群。

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

发布评论

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

评论(1

谁许谁一生繁华 2024-10-16 14:04:10

我知道您不想听到这个,但是 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:

Tech: Now click on the Maximize button of the active window inside the other window
you've just restored to normal size and everything should be okay.

Customer: What?

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.

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