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
精彩评论