wpfnavigationprismregions

WPF PRISM - Display multiple pop-up view on the same time


My Shell Window contains a secondary pop-up region from the Stock Trader RI demo application

infBehaviors:RegionPopupBehaviors.CreatePopupRegionWithName="{x:Static inf:RegionNames.SecondaryRegion}"

I am activating my views using the regionManager's RequestNavigate method:

regionManager.RequestNavigate(RegionNames.SecondaryRegion, new Uri(FooView, UriKind.Relative));

Everything works fine if I work just with a single View. However in my case I want to have multiple Pop-up Windows at once - like having multiple pop-up regions at once. It seems that the problem lies in the activation/deactivation of the views inside the region.

How to "persuade" not to deactivate my previous view inside the region?

Any idea?


Solution

  • It turned out that the solution is easier than I expected. Here is the solution in case if enybody needs it.

    I just had to modify the RegionPopupBehaviours to use AllActiveregion instead of the original SingleActiveRegion and in the DialogActivation I had to remove the first call to the CloseContentDialog.

    Hope that is helps.