I'm reading through the Prism v2 guidelines in which they state:
During initialization, modules use the RegionManager to locate regions in the shell and add one or more views to those regions or register one or more view types to be created within those regions
I understand that views are added in the bootstrapper e.g. in the GetModuleCatalog() method:
protected override IModuleCatalog GetModuleCatalog()
{
ModuleCatalog catalog = new ModuleCatalog()
.AddModule(typeof(HelloWorldModule.HelloWorldModule));
return catalog;
}
But what does it mean to register a view type? Why do modules need to "register a view type" with the shell if they are already "adding their views" as with the above code?