This project is read-only.
The source code is comment but here you will found the basic things to know about this sample.

To enabled the load on demand function you have to change the ControlLoader of the navigation frame :
<navigation:Frame.ContentLoader>
    <MEFLoader:MEFContentLoader />
</navigation:Frame.ContentLoader>


Then you have to define UriMapping.
The mapped uri must be like : packagename.xap;page.

example :
<uriMapper:UriMapping Uri="Home/{Id}" MappedUri="mal.Web.Silverlight.MEF.Module1.xap;Home?id={Id}"/>
                        <uriMapper:UriMapping Uri="Home" MappedUri="mal.Web.Silverlight.MEF.Module1.xap;Home"/>
                        <uriMapper:UriMapping Uri="About" MappedUri="mal.Web.Silverlight.MEF.Module1.xap;About"/>
                        <uriMapper:UriMapping Uri="Page1" MappedUri="mal.Web.Silverlight.MEF.Module2.xap;Page1"/>


All pages must be flag with a customTag like this :
[ExportModulePage( NavigateUri = "Home")]  
    public partial class Home : Page
...



Last edited Jun 9, 2010 at 6:38 AM by malbaladejo, version 3

Comments

No comments yet.