Forward a closing event

Topics: Prism v4 - WPF 4
Apr 20, 2011 at 8:32 PM


this is a newbie question : I am working with the StockTrader RI application and I want the window closing event of shell.xaml is sent to a module, let's say the AccountPositionService of the Position module.

What is the best way, according to the Prism architecture ?

Apr 25, 2011 at 3:00 PM


Based on my understanding of your scenario, you could use EventAggregator to perform event communication between your modules, without having a direct reference.

You can read Chapter 9: Communicating Between Loosely Coupled Components where this topic is covered.

I hope you find this information useful.


Miguel Bronzovic


Apr 26, 2011 at 10:19 AM

You were right (and I was lazy :) ).

Thanks, it works fine and easy