A dashboard provides the capability to save a dashboard definition (dashboard items, data source, data binding and layout settings, etc.) to an XML file or to a stream, and restore the dashboard from an XML file or a stream.
Once a dashboard is designed, you can save its definition to the required data store. In the Dashboard Designer, this can be accomplished in the following ways.
You can save the dashboard definition by clicking the Save or Save As button in the File group on the Designer ribbon tab.
This invokes the Save As dialog, which allows you to locate the folder in which you wish to store your file.
You can handle the DashboardDesigner.DashboardSaving event to implement a custom saving procedure when an end-user clicks one of these buttons, or tries to save the dashboard using a save confirmation dialog.
The dashboard definition can be saved when the currently opened dashboard is closed (for instance, the window containing the DashboardDesigner is closed, a new dashboard is created or a different dashboard is opened). By default, a save confirmation dialog will be invoked.
Use the following methods and properties to manage dialog behavior.