Frage

Hi I have a Silverlight application I've designed using MVVM patterns and Prism.

It has a number of modules that I would only like to load once the user has authenticated.

To this end I have created a login module, that takes the clients credentials and handles authentication. Once the user is authenticated I would then like MEF to load the rest of the modules. My problem is how to accomplish this?

The module catalog is defined in xaml and all modules except the login module are set to OnDemand initialization. As far as I'm aware modules can only be loaded from the shell, which doesn't work in my case as the call for them to load would come from the loginmodules viewmodel.

Any ideas would be greatly appreciated, thanks.

Keine korrekte Lösung

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top