Skip to main content

Dashboard.SaveToXml(String) Method

Saves the dashboard to the specified XML file.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v22.2.Core.dll

NuGet Packages: DevExpress.Dashboard.Core, DevExpress.Win.Dashboard.Design


public void SaveToXml(
    string filePath


Name Type Description
filePath String

A String that specifies the path to a file to which the dashboard should be saved.


To save a dashboard to a stream, use another overload of the SaveToXml method that takes a stream parameter.

To load a dashboard from a file or stream, use the Dashboard.LoadFromXml method.

The following code snippet shows how to save a dashboard to the project’s Data folder when you click a button:

private void button1_Click(object sender, System.EventArgs e) {

The following code snippets (auto-collected from DevExpress Examples) contain references to the SaveToXml(String) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also