Give this a try. Use the RegionManager to add a view to your region: regionManager. AddToRegion("ContentRegion", new MyViews.
View1()); Then when you want to replace that view you can either remove the view: regionManager. Regions"ContentRegion". Remove(view); Or loop through the views in the region and remove them all: foreach (var view in regionManager.
Regions"ContentRegion". Views) { regionManager. Regions"ContentRegion".
Remove(view); } Your view model would be a good place to place this kind of code. Use Unity to inject the region manager in your view model constructor.
2 i'm not sure the last option will work as this is altering the enumeration while looping through it. – bobwah Apr 26 '10 at 13:02 That is a good point. How could this be done with Prism?
Copy the views to you own collection and then enumerate it? – DaveB Apr 26 '10 at 15:31 1 I think you can either not remove views once you have registered them with a region and instead Activate or Deactivate views within a region, or add the view with a name (view. Name = "View") and then RegionManager.
Regions"Region". Remove(RegionManager. Regions"Region".
GetView("? View")) – bobwah Apr 27 '10 at 16:58.
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.