how to get the region name?
- by shemesh
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?