how to get the region name?

Posted by shemesh on Stack Overflow See other posts from Stack Overflow or by shemesh
Published on 2010-01-19T14:22:59Z Indexed on 2010/04/15 16:03 UTC
Read the original article Hit count: 261

Filed under:
|

using Silverlight & Prism. i create a new scoped region inside a TabControl like so:

IRegionManager regionManager = tabControl.Add(viewRegions, UNIQUEID, true);

then from the TabControl SelectionChanged event i want to get the name of that region. so i go:

TabItem item = e.AddedItems[0] as TabItem;
FrameworkElement view = item.Content as FrameworkElement;
IRegionManager xxx = RegionManager.GetRegionManager(view);

so now i have the scoped region manager at hand = xxx!

but how do i get its name? (the "UNIQUEID" param i have assigned to it ).

HOW?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about prism