Latest drop GetModuleCatalog is gone how do you do it?

Topics: Prism v4 - WPF 4
Jul 25, 2010 at 6:05 AM

Hi

Sort of new to prism and wondering  how you get Modulecatalog.

I have installed the latest drop of prism and the following override using CreateFromXaml no longer seems to be there.

How do I achieve the same in the latest drop?

 Below method seems deprecated.

protected override IModuleCatalog GetModuleCatalog() 
{            
  return ModuleCatalog.CreateFromXaml( new Uri("/Shell;component/ModuleCatalog.xaml", UriKind.Relative)); 
 }
Thanks for any suggestions
Jul 25, 2010 at 6:12 PM

GetModuleCatalog has become CreateModuleCatalog. There was a pattern we saw emerging in the bootstrapper classes where there are a number of things you need to create, then configure.  This method was renamed for consistency.

Take a look at the modularity quickstarts for an idea of the new naling pattern, or look at one of the two bootstrapers (UnityBootstrapper in the UnityExtensions.dll or MefBootstrapper inthe MefExtensions.Dll) and the Run method to see the basic sequence of method calls. 

The next drop will have docs around the bootstrapper which should help with the confusion.

 If you are still having issues, let me know,

Michael Puleio