开发者

communication between modules in Prism4

开发者 https://www.devze.com 2023-03-01 04:43 出处:网络
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 Aggr

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

精彩评论

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