开发者

communication between modules in Prism4

When communica开发者_开发百科ting between modules, which approache is best in Prism4? Although i have used Event Agregator.


If your modules are across different assemblies, it is best to use Event Aggregator as you have done. This will ensure your modules are not tightly coupled.


Event Aggregator is good, but some times is better to use common module with Interfaces for basic classes that you want to use into different modules. Another way is using Context for Regions/Views for communicating between UI elements

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜