Skip to content

DevExpress-Examples/wpf-dashboard-how-to-set-initial-dashboard-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dashboard for WPF - How to Set the Initial Dashboard State

This example demonstrates how to manage dashboard state to save and restore selected master filters values, current drill-down levels and other parameters such as Treemap layers.

When the main window closes, the DashboardControl.GetDashboardState obtains a dashboard state object. It is serialized to XML and added to the XElement object stored stored in the CustomProperties collection. Subsequently the dashboard with the dashboard state data is saved to a file.

When the application starts, the DashboardControl loads the dashboard and the DashboardState object is deserialized and restored using the GetDataFromString method in the DashboardControl.SetInitialDashboardState event handler.

Files to Review

Documentation

More Examples