Skip to content

Window Dialog keeps views loaded inside IRegionManager #2899

Answered by brianlagunas
taso131 asked this question in WPF
Discussion options

You must be logged in to vote

As you can see, you cannot create multiple instances of the same region. You have two choices, clear the views from the region and remove the region from the region manager, or used scoped regions. When clearing views and removing the region, you don't need code behind in every views, just the main dialog view that contains the regions.

The proper way to handle this scenario is to use scoped regions. You can learn about that here Prism Problems & Solutions: Showing Multiple Shells

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@taso131
Comment options

Answer selected by taso131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
WPF
Labels
None yet
2 participants