Prism - 我真的需要使用 Prism 区域经理吗?

发布于 2024-09-06 11:44:32 字数 220 浏览 1 评论 0原文

我正在构建一个基于 WPF 应用程序框架 (WAF) 的应用程序。我认为该框架具有我需要的大部分内容,但如果有任何机会让我的事情变得更容易,那么我想充分利用它们。我一直在研究 Prism,我认为我的应用程序可能会受益于使用一些库功能。特别是在他们发布新版本之后。

我的问题涉及 PRISM 为我带来的区域经理功能。有人可以告诉我,它提供了哪些杀手级功能,而这些功能是我无法通过简单的非 Prism 编码获得的。

I am building an application based on the WPF Application Framework (WAF). I think the framework has most of what I need but if there are any opportunities for making things easier for me then I'd like to take full advantage of them. I've been looking at Prism and I think my application might benefit from using some of the library features. Particularly after they release the new version.

My question concerns the Region Manager capabilities that PRISM brings me. Can someone tell me what are the killer features this offers that I can't just have through simple non-Prism coding.

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

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

发布评论

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

评论(1

-黛色若梦 2024-09-13 11:44:32

我的回答是:
如果您的应用程序很简单 - 例如 2-3 个视图,并且您不想从动态模块加载、IoC 等中受益,您可能不想使用 PRISM、WAF、MEF。
但如果您的应用程序很大,您最终会编写自己的 RegionManager。既然你已经为自己写了一篇文章,为什么还要写一篇新的呢?

My answer is:
if your app is simple - like 2-3 views and you do not want to benefit from the dynamic modules loading, IoC etc. you probably do not want to use PRISM, WAF, MEF.
But if your app is big, you end up writing your own RegionManager. So why write a new one when you have already written for you ?

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