Splash screen using MEF bootstrapper

Topics: Prism v4 - WPF 4
Jun 20, 2011 at 2:37 PM

Hello all.

I have a prism 4 application using an MEF bootstrapper. I have implemented a splash screen from the bootstrapper and want to provide the user with module info (as they are loaded) while the module manager is loading the app/modules.

I think I need to subscribe to the LoadModuleCompleted event in the module manager. I cannot do this because when I resolve the module manager with the container in the MEF bootstrapper the PRISM framework calls OnImportsSatisfied which loads all the modules. (This is too late since I want to listen for this).

How can I display a splash window with a progress bar displaying module info/progress?

Many thanks!

Jun 21, 2011 at 9:11 PM

Hi,

You might find the Modularity QuickStarts for WPF (using MEF) handy in order to track down the progress of downloading your modules, since a similar behavior is covered in the Modularity With MEF QuickStart.

On the other hand, you can read this thread where Splash Screen using MEF is demonstrated:

Dynamic splashscrenn with Mef and Prism v4

I hope you find this information useful.

Thanks,

Miguel Bronzovic
http://blogs.southworks.net/mbronzovic