Unloaded Event of a View

Nov 28, 2008 at 10:20 AM
Hi All,

I am removing a attaching View1 of ModuleA in a ItemsControl, After Doing some work I am removing the View1 of ModuleA and adding a View2 of ModuleB. (Replacing a view a ItemsControl). While I have removed a view, its unloaded event is not triggering. Please suggest me how can I trigger the unloaded event of that view.

Regards
Raj.
Dec 1, 2008 at 11:41 AM

Raj,

I am not sure the order of actions you take, but I think losing them is default behavior of Prism in these cases. Take a look of Ade Miller's post of Prism EventAggregator, which probably will explain the question you are facing and possible way forward.

You can find Add's blog post at
http://www.ademiller.com/blogs/tech/2008/11/adding-store-and-forward-support-to-the-prism-eventaggregator/ 

Regards,
Alexander