Typo in CHM file

Topics: Prism v4 - Silverlight 4, Prism v4 - WPF 4
Aug 19, 2010 at 8:15 PM

HOL SilverLIverLight Hello World

protected override void ConfigureModuleCatalog()
{
    base.ConfigureModuleCatalog();

    ModuleCatalogmoduleCatalog = (ModuleCatalog)this.ModuleCatalog;
    moduleCatalog.AddModule(typeof(HelloWorldModule.HelloWorldModule));
}

Should be

   
     protected override void ConfigureModuleCatalog()
        {
            base.ConfigureModuleCatalog();
            ModuleCatalog moduleCatalog = (ModuleCatalog)this.ModuleCatalog;
            moduleCatalog.AddModule(typeof(HelloWorldModule.HelloWorldModule));
        }

 

Aug 19, 2010 at 8:55 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Aug 19, 2010 at 10:33 PM

There is some missing information in the Hello World Silverlight Tutorial web page that is found here:

http://msdn.microsoft.com/en-us/library/dd490826.aspx

A key piece of information that was not included in the tutorial, is this step:

Go into your Shell.xaml file and change the ItemsControl to name it for the RegionManager like this:

<ItemsControl Name="MainRegion" Regions:RegionManager.RegionName="MainRegion"/>

Without this, it will never work.

-Huge