Prism, MEF and Non-WPF/Silverlight Apps?

Dec 12, 2011 at 1:55 AM


I use prism a lot- in WPF apps and silverlight apps primarily.  But what if I want to use the IEventAggregator, imported from MEF for a console app?  Like XNA?  The MefBootstrapper has dependencies on WPF and Silverlight specific stuff...

Is there any kind of bootstrapper for non-wpf/silverlight apps?  I really just want to use some existing libraries that are wpf/silverlight independent, but that use the IEventAggregator import from mef for messaging... havent found a clean way to work with this yet...

Is there a way to do this?

Dec 12, 2011 at 8:04 PM


Take into account that Prism does not provide a way to achieve this out-of-the-box, as it is intended to be used with WPF and Silverlight applications.

Based on my understanding of your scenario if you only need to benefit from Prim's EventAggregator capabilities you could try a similar approach like the one mentionned in the following threads:

I hope you find this helpful

Agustin Adami