I have a small tool similar to the Windows control panel. This tool allows us to manage users, set up databases, manage scripts, etc. The home page presents all the subcategories of the application. When you click on a link, it loads a view of this category in the right panel, and the small left panel shows the tasks available for this category. Plain.
Basically, I want to do to have a “contextualized” status bar. If you are in a point of view where you need to connect, the status bar should show the status. If you are in sight of where the information should be displayed, I want it in the status bar.
I already set Region(named StatusBarRegion for the status bar in my shell. For each module, I registered the StatusBarView of this module in the shell area.
Now I want to handle the context change. I need to activate a good performance when it is time.
But every time I try to resolve the StatusBarRegion, it cannot be found in the regions of the region manager.
Cm,
var region = _regionManager.Regions[.RegionNames.StatusBarRegion];
region.Activate(_container.Resolve<StatusBarView>());
The area is always zero. Why?
Thank you for your time.
source
share