This project is read-only.

Adding Parts to MEFedMVVMCatalog

Sep 4, 2010 at 11: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 1:37 PM
Edited Sep 4, 2010 at 1:38 PM

Just use IComposer and set your Catalog with

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

at application start up time

Sep 6, 2010 at 11:11 AM

yep Dimax just answered it :) Thanks Dimax :)