CreateFromXaml can't be found error

Topics: Prism v4 - Silverlight 4
Jun 20, 2012 at 4:30 PM
Edited Jun 21, 2012 at 1:28 PM

I'm defining my BootStrapper class as:


But as you can see, I get this error saying that IModuleCatalog does no contain a method called CreateFromXaml.

I'm following the Documentation

What could I be missing here?

Jun 21, 2012 at 1:38 PM
Edited Jun 21, 2012 at 1:51 PM


Based on my understanding, to avoid this error you may have to specify the "Microsoft.Practices.Prism.Modularity" namespace to return the correct ModuleCatalog class in the CreateModuleCatalog override method, as currently you are returning the ModuleCatalog property defined in the Bootstrapper class which doesn't contain a CreateFromXaml method.

For example your  CreateModuleCatalog override method could look similar to this:

protected override IModuleCatalog CreateModuleCatalog()
                   new Uri("/MyModularityProject;component/ModulesCatalog.xaml", UriKind.Relative));       

Also you could find an example of this in the Modularity QuickStart provided with Prism.

On the other hand, as you mentioned, it seems that the Prism documentation example does not portrays this, hence if you believe this should be changed, you could create a work item in the issues tracker section notifying about it.


Agustin Adami

Jun 21, 2012 at 2:45 PM


Thank you. it solved it.

Maybe later I'll create the item in the issue tracker.