Today, the Patterns & Practices Sustained Engineering Team, added a new article to the Composite WPF & Silverlight Knowledge Base that explains the required steps to migrate the Prism-v2 Reference Implementation to use Dynamic Module Loading.
Although the article explains the specific migration steps for the latest drop's (drop 10) Reference Implementation, it provides the necessary concepts to be able to enable Remote (or Dynamic) Module Loading in any Prism-v2 Solution that uses Static Module Loading and was not created to use Remote Module Loading. Performing the migration does not have a great level of difficulty and the amount of time it takes depends mainly on how many modules your solution has.
The main steps covered by the article are:
- Updating Silverlight class libraries to Silverlight applications to generate xap files
- Setting up remote module loading
- Creating a Web Application to host the RI
Below is a picture of the solution explorer's outcome once the migration has been performed.
We have uploaded the article in .pdf format and the source code of the RI using Dynamic Module Loading:
- PDF version of the article
- Source Code of the Prism-v2 Reference Implementation using Remote Module Loading.
Disclaimer: The code is provided "AS IS" with no warranties, and confers no rights.
Hope this is useful.