Prism - 我真的需要使用 Prism 区域经理吗?
我正在构建一个基于 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的回答是:
如果您的应用程序很简单 - 例如 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 ?