❔ Prism: Change view in region - How to add multiple views to region and activate?
Hey,
currently I'm developing a WPF application that has a navigation menu on the left (basically a treeview) and a content panel on the right. Whenever I click on a treeview item, the details about that item should be displayed on the right side within the content panel.
There are different types of items and each type has a view and a viewmodel.
How do I add multiple views to a region and activate one at a time?
I added the views like this
and PersonDetails is showed. When I run
I get an error
When I exchange "RegisterViewWithRegion" by "AddToRegion" I get another exception.
What's wrong here?
2 Replies