Jul 12, 2010 at 9:36 PM

Greate framework...  I'm using an altered (by Glenn) version of MEF for WP7 and I've followed your example to the letter, though my CanSayHello and SayHello are not working.  Any idea why and have you tested your sample app, the one without MEF on WP7?


Jul 12, 2010 at 10:41 PM
Edited Jul 12, 2010 at 11:09 PM


It was the tool generated code, invoked from "InitializePhoneApplication()", that was stepping on me:

 private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e)
            // Set the root visual to allow the application to render
            if (RootVisual != RootFrame)
                RootVisual = RootFrame;  <-- This right here is fowling things up!

            // Remove this handler since it is no longer needed
            RootFrame.Navigated -= CompleteInitializePhoneApplication;

This is specific to the June.28 drop of the tools for TAP partners, I'll install the Beta tools and see if this is still an issue.  I sent you the project file for you to investigate a possible workaround, please let me know your thoughts.