How do I communicate between the Shell and its modules?

Topics: Prism v4 - Silverlight 4
Apr 8, 2011 at 5:29 AM

So, it seems that there are various ways of communcation between modules, but how can I communicate from the shell to its modules?




Apr 8, 2011 at 2:09 PM

Hi Tolga,

The means of communication between modules are, less specifically, means to communicate between loosely coupled components, which include the shell.

Therefore, if your scenario requires communicating from your shell towards your modules, you could use the same means described in the Communication Chapter of the Prism MSDN documentation. For example, you could publish an event through the Event Aggregator in your Shell's ViewModel, and have a module subscribe to that event as with any other event.

I hope you find this helpful.

Guido Leandro Maliandi