You may also want to lock the initial visualization, making it the only one displayed at all times. This way the dashboard works like a single visualization dashboard. This is the concept behind “single visualization mode”.
settings.SingleVisualizationMode = true;
After adding this single line, the dashboard will work as a single visualization dashboard. You can do the same for each division’s home page, just replace the title of the visualization in GetVisualizationByTitle with the right one.
Dynamically changing a locked visualization
It is also possible for you to dynamically change the single visualization being displayed, without reloading the page. From the user’s perspective, your app would be a single page application with a selector of divisions and a maximized visualization. After the user chooses one division from the list, the maximized visualization is updated.
private void MaximizeVisualization(string title)
{
revealView.MaximizeVisualization(revealView.Dashboard.GetVisualizationByTitle(title));
}
Finally, you have to connect your custom control with the method above. That way the visualization will be maximized when the selection in your application changes.
-
You can generate the list of buttons dynamically by iterating the list of visualizations in the dashboard. For further details see RVDashboard.Visualizations.
-
There is a working example in the Manufacturing.xaml.cs view, in the UpMedia WPF application distributed with the SDK. That sample view shows all visualizations as a list of toggle buttons, at the bottom of the screen.