WintRT - MEF

Topics: Bootstrappers & IoC
Oct 17, 2012 at 1:03 AM

How can I use MEF (or do I need to) to do composition with Caliburn.Micro for WinRT?


One to many screens

public class OneView : Screen {



public ShellViewModel([ImportMany] IEnumerable<IScreen> screens)



Oct 17, 2012 at 2:41 AM

MEF for WinRT is in a NuGet package and you can get more info here :

I'm using it in a project without Caliburn right now since Caliburn wasn't ported yet when I started, but I've recently started looking at getting it integrated with Caliburn and it looks like we'll need to override some of the current functionality in the bootstrapper.

Oct 17, 2012 at 4:09 AM

Right, that's what i was thinking, now i'm trying to use both Caliburn.Micro and MEF in my new project and it is somewhat cumbersome, i wanted to know if someone else was trying and had better luck.

keep me posted.

Oct 17, 2012 at 6:49 AM
Edited Oct 17, 2012 at 6:57 AM

I've got it hooked up to get the default view and viewmodel from the container, but I don't have the binding working yet.

Here's a little test app to show my progress.

Oct 17, 2012 at 4:18 PM

Nice Work, that's what i'm looking for, keep me posted