region.Activate(view) does not work?

Jun 3, 2008 at 5:47 AM
Edited Jun 6, 2008 at 2:42 PM
Hi,

I'm currently working on a WPF project using the Prism framework and I have a question about activating views in a region.
When I add 2 views to one region and then call Activate on the region it does not appear.

IRegion myRegion = _regionManager.GetRegion("MyRegion");
UserControl1 uc1 = new UserControl(); //Added some content
UserControl1 uc2 = new UserControl(); //Added some content
myRegion.Add(uc1);
myRegion.Add(uc2);
myRegion.Activate(uc1);

Although I have activated uc1, uc2 is shown, Why??
How do I activate a View?
Why isn't there a Show(view) and Hide(view) method on the region?

When I have no background specified in my view, you see both views.
I would expect that by default only the one on top is visible and the others hidden (collapsed).