how to communication between module and shell ?

Topics: Prism v2 - WPF 3.5, Prism v2 - WPF 4
Jun 11, 2010 at 7:28 AM
Edited Jun 11, 2010 at 8:37 AM


I did not  know  do it ,

what do I  change module view logic  , so  a Border will hide on  shell.xaml .




thanks ...~:)






Jun 14, 2010 at 5:02 PM


You could publish an event through the Event Aggregator, and have the ShellPresenter/ShellViewModel subscribe to that event, so that when the event is raised a border is hidden on shell.xaml. You might find this thread useful to find how to access the Event Aggregator from the shell.

Please note that this only applies if the border is part of the layout of the shell. If the border were part of your module’s view, you wouldn’t need to use the Event Aggregator.

I hope you find this helpful.

Guido Leandro Maliandi