采用MEF和棱镜的模块化应用 [英] Modular application with MEF and Prism

查看:101
本文介绍了采用MEF和棱镜的模块化应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我不确定这是否是提出问题的正确论坛,但现在来了。我们计划使用Prism,MEF,WPF和amp; Prism,我已经阅读了模块化部分的文档。一切似乎都很清楚,但是
问题是我无法找到如何在不同模块上共享模型对象。是否有必要在单独的程序集中创建到达模型的接口并将所有模块引用到它?所以这个界面将包含所有方法
&可用于不同模块的属性。这是正确的方法,还是有另一个解决这个问题的方法?


 


谢谢

解决方案

您可以在
http://compositewpf.codeplex.com/discussions <上发布您的查询/ A>

Hi,

I'm not sure if this is the correct forum to ask my question but here it comes. We're planning to develop a modular application using Prism, MEF, WPF & Prism, I've already been reading the document on the modularity part. Everything seems clear but the problem is that I can't find out how it's possible to share a model object over differen modules. Is it necessary to create interface(s) for reach model in a separate assembly and reference all the modules to it ? So this interface would contain all the methods & properties which will be available to the different modules. Is this the right approach or is there another solution to this problem ?

 

Thanks

解决方案

You can post your queries at http://compositewpf.codeplex.com/discussions


这篇关于采用MEF和棱镜的模块化应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆