Take a look at Prism 4.0 Quickstart - Modularity with MEF for Silverlight.
This quick start creates a directory from XAML, but you can manually add entries to the module directory and pass similar parameters. The only thing the module information class needs is the REF for the XAP file.
You can also see the desktop version. This finds the DLLs containing the modules in the directory, and then loads them from disk. You can do the same by pointing to a known DLL in some place.
Essentially, if you add the required module information to ModuleCatalog, ask the module to load, a loadable or loaded DLL, and the MEF / Unity containers will have that module.
source share