randacun
randacun

Reputation: 572

Prism: Shared View For Multiple Regions

I tried using a single view for multiple Regions located in different views.

View1 -> MyRegion1 uses SharedView
View2 -> MyRegion2 uses SharedView

The initial view is View1 and it successfully shows the SharedView. When I navigate to View2, it also shows the SharedView. Now when I navigate back to View1, the SharedView is gone. Are there other steps I need to do to render a shared view in different views during navigation changes? Thanks a lot.

Upvotes: 1

Views: 1169

Answers (1)

chopikadze
chopikadze

Reputation: 4239

Not Prism but WPF wants to have a different instance of the view. So, short answer to your question is - NO, it's not possible. Please, create in any way different instances of your SharedView

Upvotes: 1

Related Questions