Prism with Silverlight

Topics: Prism v4 - Silverlight 4
Sep 1, 2011 at 2:14 PM

I am using Silverlight 4 with Prism 4.  I am dynamically loading module. Suppose I have Module A which is linked to View A. Now 1st time, Module A load View A and the Initialize event fire. But the 2nd time I click on the menu, nothing happen. Is there a way to activate the module / view? I know we cannot unload a module / view. I read this somewhere.

Some code sample would help?


Sep 1, 2011 at 6:23 PM


In Prism, modules are not intended to be loaded more than once. However, after you have loaded a module, the view and all the components that you require to fulfill your use case (e.g. a viewmodel) can be instantiated more than once, so you should first load your module, and then make your button call another component that will be responsible for adding the views to regions.

You might find the following links handy:

I hope you find this useful

Agustin Adami