Hi,
I've got an little tool similar to the Windows Control Panel. The tool allows us to manage users, configure databases, manage scripts, etc. The home page presents all the sub categories of the application. When you click on a link, it loads the view of this category in the right panel and a small left panel shows the tasks available for this category. Simple.
Basically, what I want to do is to have a "contextalized" status bar. If you are in a view where you need to be connected, the status bar should show you state. If you are in a view where informations should be displayed, I want it in my status bar.
I already put a Region
(named StatusBarRegion for the status bar in my shell.
For each module, I registered the StatusBarView of this module on the shell's region.
Now, I want to handle the change of context. I need to activate the good view when it's time.
But everytime I try to resolve the StatusBarRegion, it can't be found in the regions of the region manager.
See,
var region = _regionManager.Regions[.RegionNames.StatusBarRegion];
region.Activate(_container.Resolve<StatusBarView>());
The region is always null. Why's that ?
Thanks for your time.