Adding Parts to MEFedMVVMCatalog

Sep 4, 2010 at 10:05 AM

I'd like to have one of my viewmodels do [ImportMany] to get a bunch of IMyInterface implementations from some external dlls.

I can retrieve the dlls into a Catalog, but is it possible to add my catalog into MEFedMVVM's catalog?  Will simply adding them allow my viewmodel to import correctly?

 

Sep 4, 2010 at 12:37 PM
Edited Sep 4, 2010 at 12:38 PM

Just use IComposer and set your Catalog with

MEFedMVVM.ViewModelLocator.LocatorBootstrapper.ApplyComposer(YOUR COMPOSER);

at application start up time

Coordinator
Sep 6, 2010 at 10:11 AM

yep Dimax just answered it :) Thanks Dimax :)