Prism switch between views in the same region?

If your region is a ContentControl or derives from ContentControl, then there can only be one active view at a time, and you only need to activate the search view on the region.

If you are using a IRegionManager, you can remove all of the views whose types you recognize and then add your own. Foreach (var view in _regionsManager. Regions"MyRegion".Views.ToArray()) { if (view is MyType || view is MyOtherType) _regionsManager.

Regions"MyRegion". Remove(view); } _regionsManager. AddToRegion("MyRegion", typeof(MyView)); Its by no means ideal, but it works.

:).

To my knowledge what you are doing is the only way, theoretically in SCSF the top most view was activated by the framework. You could create your own ViewManager or a ShowViewService equivalent to get this done. MAtter of fact, thats what I have done!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions