1

Closed

how to get view from parent region

description

Hi,
I have the following parent child hierarchy,
 
A1 A2 => Tab region
B1 B2 B3 B4 B1 B2 B3 B4 => Tab region
 
A1 and A2 are the main view. B1 B2 B3 B4 are the child of A1 and A2, when i do context switch b/w A1 and A2 how can i get that which of the child is active in parent, Its nested tab region issue... looking forward for some good suggestion.
Closed Dec 21, 2012 at 6:10 PM by DCherubini
Hi,We are closing this work item as it seems this is not an issue in Prism or a feature request. For further support regarding this topic you can create a new thread in the discussion section (http://compositewpf.codeplex.com/discussions) where we will help you with your concerns.Regards,Damian Cherubinihttp://blogs.southworks.net/dcherubini

comments

aadami wrote Sep 17, 2012 at 7:01 PM

Hi,

Based on my understanding of your scenario: if both your A1 and A2 views define the same region (e.g. "TabRegion") where the child views are added by using scoped region managers, you should be able to retrieve the active views in each of the parent views by benefiting from the Region's ActiveViews property. For example, this could be used in each of the Regions defined by each Scoped Region Manager like this:

var ViewA1ActiveView = scopedRegionManagerA1.Regions["InnerRegion"].ActiveViews.FirstOrDefault();

Please let us now if we have misunderstood your scenario.

Agustin Adami
http://blogs.southworks.net/aadami

DCherubini wrote Dec 21, 2012 at 6:10 PM

Hi,

We are closing this work item as it seems this is not an issue in Prism or a feature request. For further support regarding this topic you can create a new thread in the discussion section (http://compositewpf.codeplex.com/discussions) where we will help you with your concerns.

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini