This project is read-only.

Dynamically loading usercontrols using MEF

Jan 19, 2012 at 3:44 PM
Edited Jan 21, 2012 at 2:01 PM


I am using the DeploymentCatalogService for dynamically downloading my usercontrols.

It works fine, however when I use your MefedMVVM locator the viewmodel constructor marked with ImportingConstructor is never called?

Is there anything different I must do? No errors are thrown, it simply just doesnt call my viewmodel class.  The view shows up fine.

I am using silverlight 5 and am NOT using PRISM.


Ok I solved this thanks, by implementing IComposer Interface on my DeploymentCatalogService and by adding this line of code to the bottom of my AddXap method:


The answer can be found here for others with the same problem: