Use one region in multiple view #3309
Unanswered
cocofaivre
asked this question in
WPF
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I create a region with the RegionManager and I register 3 views for this region.
After, I would like to use "MyRegion" in two different views (MainFirstView and MainSecondView)
I create ContentControl with region name in MainFirstView.xaml and MainSecondView.xaml :
But I have this error when opened MainSecondView:
Prism.Regions.Behaviors.RegionCreationException: An exception occurred while creating a region with name 'MyRegion'. The exception was: System.ArgumentException: Region with the given name is already registered: MyRegion
I would like to know if this is possible to have one region, which can be used in multiple view ?
Thank's for your response
Beta Was this translation helpful? Give feedback.
All reactions