Switching between multiple modules for one region

Topics: Prism v2 - Silverlight 3
Oct 26, 2009 at 1:26 PM


I was wondering if anyone could assist me with a problem I've been trying to solve for a while.

I have a region in my application, let's call it "PropertiesRegion". This region contains data related to an object, which is selected in another region, let's call that one "ListRegion". Depending on what type of object is selected in the "ListRegion", a corresponding view will be loaded into the "PropertiesRegion".

My problem is that these different properties-views are vastly different and use different data-sources, so I have placed them in separate modules. How shall I inject the correct view into the "PropertiesRegion"? Clicks in the "ListRegion" generate an event I can subscribe to, but where should the injection take place? Should each module subscribe to this event, and inject itself if the object type corresponds to the type it is responsible for? Or is there another solution?

Thankful for any assistance

Kind Regards,


Oct 26, 2009 at 9:45 PM

Hi Exipen,

I recommend you to take a look in the following forum threads, where it was treated:


Fernando Antivero