In my application, I sometimes need to show the same view in multiple places on screen at once. I'm using View Discovery (RegisterViewWithRegion) for some of those views. Up until now it has been working OK, but now I'm starting to see exceptions from the
RegionManager about adding >1 region with the same name.
It looks like the only reason it has been working is that the RegionManagerRegistrationBehaviour was usually failing to find the RegionManager, so the view discovery worked but the actual region was never added to the RegionManager.
Is this supposed to work? I get the feeling it isn't. I can see how having two regions with the same name would be problematic for View Injection.
If not: It seems like the best way around this would be to divorce the View Discovery from the existing RegionManager entirely. I.e. remove the view discovery from the RegionManager, and have a ViewManager class that worked like the RegionManager, but only
did View Discovery (not View Injection).
Does that sound like a good idea? I've not looked to see how much work it would be, yet.