Hi,
Your implementation is correct in which you import the RegionManager from the container. In addition, you would also need to import the RegionManager on each Module class so you may be able to register the Views into each Region when initializing the module.
When I mentioned that the RegionManager may be imported through constructor, I was referring to the following implementation although it basically behaves exactly as yours:
Then, you would successfully navigate through Master Views like you described, but Edit Views would need their corresponding RequestNavigate() on the MainRegion too.
For more information you can refer to the following MSDN Prism Guide chapters:
Regards,
Gabriel Ostrowsky.
https://blogs.southworks.net/gostrowsky
Your implementation is correct in which you import the RegionManager from the container. In addition, you would also need to import the RegionManager on each Module class so you may be able to register the Views into each Region when initializing the module.
When I mentioned that the RegionManager may be imported through constructor, I was referring to the following implementation although it basically behaves exactly as yours:
[ImportingConstructor]
public ModuleA(IRegionManager regionManager, IModuleManager moduleManager)
{
RegionManager = regionManager;
ModuleManager = moduleManager;
}
...
For more information you can refer to the following MSDN Prism Guide chapters:
Regards,
Gabriel Ostrowsky.
https://blogs.southworks.net/gostrowsky