2
votes

I have an application wich has some "modules" so to speak. Each user has permissions to see each module, some don't see all some see all.

I want to load XAP files and load those view models(with views) in my application.

How do I do that with Galasoft MVVM light and DeploymentCatalogService?

Reference:

http://mvvmlight.codeplex.com/

http://codebetter.com/glennblock/2010/03/08/building-hello-mef-part-iv-deploymentcatalog/

Is it even posible or am I wasting my time here? How to initialize this in the locator?

So let me explain this in this example user case:

  1. User logs in
  2. application loads XAP files depending on user permissions (users module, groups module, articles module, customers module, accounting module etc...) = ViewModel + Views
  3. user clicks on one of the modules and the ViewModel gets initiated
  4. user uses application and is happy

I currently have all view models in one silverlight project.

1

1 Answers