Hi,
We took the sample you provided and made changes to it in order to be able to use MEF, some of which include the following:
Prism Splash sample (Prism 4.1)
Hope this helps,
Federico Martinez
http://blogs.southworks.net/fmartinez
We took the sample you provided and made changes to it in order to be able to use MEF, some of which include the following:
- Migrated application from Prism 2.0 to Prism 4.1
- Changed Bootstrapper to aggregate modules using MEF
- Added ModuleExport, Export and ImportingConstructor attributes to the corresponding types
- Removed the manual module initialization from the Bootstrapper (the initialization should be done automatically by the ModuleCatalog)
- Made modules dependent of the Splash Module, to avoid having them being initialized before it
-
Events that were published on the Bootstrapper were moved to their corresponding Modules
- Registering types against themselves like this: Container.RegisterType<SplashViewModel, SplashViewModel>();
-
Manual initialization of modules in Bootstrapper. Modules should have an Initialize method.
Prism Splash sample (Prism 4.1)
Hope this helps,
Federico Martinez
http://blogs.southworks.net/fmartinez