将 mdi 应用程序转换为 mvvm wpf 应用程序

发布于 2024-10-31 18:33:44 字数 233 浏览 11 评论 0原文

我有一个 winform 应用程序,我想将其转换为 WPF

它有一个主窗体 (MDI),孩子们也可以互相调用。

我读到,根据 mvvm,MDI 不是一个好的做法。但我看到该应用程序具有我想要的外观和感觉(例如:Prism - 有人告诉我,它对于初学者和像我需要的小型应用程序来说太复杂)。

您知道一个遵循 mvvm 规则并具有 MDI 应用程序外观的小型 WPF 项目吗?

谢谢 阿萨夫

I have a winform application that I want to convert to WPF

It has a main form (MDI) and the children can call each other as well.

I read that MDI is not a good practice according to the mvvm. But I saw that application have the look and feel that I want (e.g:Prism- I was told that it is too complicated for beginners and for a small application like I need).

Do you know a small WPF project that follow the mvvm rules and has the look and feel of MDI application?

Thanks
Asaf

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

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

发布评论

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

评论(1

北城孤痞 2024-11-07 18:33:44

MDI是一种GUI设计模式。 MVVM 是一种编程设计模式。两者确实一点关系都没有。您可以选择其中一项或同时进行两项。

然而,许多 GUI 设计专家确实不赞成 MDI,但这完全是因为最终用户的可用性......而不是因为底层代码。

也许如果您描述或提供您想要创建的 UI 的模型,我们可以提供有关如何在 WPF 中实现它的指导。

MDI is a GUI design pattern. MVVM is a programming design pattern. The two really aren't related at all. You can do either one or both together.

It is true, however, that many GUI design experts frown upon MDI but that's entirely because of usability for the end-user... not because of the underlying code.

Perhaps if you describe or provide a mockup of the UI you want to create we can provide guidance on how to implement it in WPF.

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