ShellViewModel Advice

Dec 16, 2010 at 5:28 AM


I need some advice with handling views in a ShellViewModel. From the owlmedia example I notice that the shell viewmodel keeps a refence to all the main viewmodels in the items collection.

Is this the recommended approach? I have a LOB application with about 40 main screens which would mean resolving all 40 viewmodels at startup and keeping a reference to them in the shellviewmodel.

I could just resolve the appropriate viewmodel per button click, which is how I've done it in the past.

Is there a particular method you can recommend I take?


Dec 16, 2010 at 2:35 PM

Definitely, in your case, resolve them as needed.