How to Add / Restrict the Module On Demand

Topics: Prism v4 - WPF 4
Jan 2, 2012 at 8:15 AM

Hi All,

Can any one tell me how to Add / Restrict the Modules OnDemand ? In Prism 4 Framework.

Thanks and Regards,

Sakthi

Developer
Jan 2, 2012 at 4:33 PM

Hi Sakthi,

Based on my understanding, I believe you could find the following blog post useful:

In the aforementioned blog post you can find a sample application that simulates a login scenario where the modules are loaded on demand according to the role of the user. In order to do this, the application defines a shared service (the IAuthorizationService) to obtain a list of modules depending of a parameter (the role of the user) and then, load the modules specified in this list through the Prism's ModuleManager. I believe that this approach might be similar to the functionality you want to achieve.

I hope you find this useful,

Damian Cherubini
http://blogs.southworks.net/dcherubini