Back to Devexpress

DashboardControl.LoadDashboard(String) Method

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-dot-loaddashboard-x28-system-dot-string-x29.md

latest3.7 KB
Original Source

DashboardControl.LoadDashboard(String) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Loads a dashboard from an XML file.

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Dashboard.v25.2.Wpf.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public void LoadDashboard(
    string path
)
vb
Public Sub LoadDashboard(
    path As String
)

Parameters

NameTypeDescription
pathString

A String that specifies the path to an XML file that contains the dashboard.

|

Remarks

The following code snippet shows how to load a dashboard located in the project’s Data folder:

csharp
dashboardControl1.LoadDashboard("../../Data/dashboard1.xml");

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

Note

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.

wpf-dashboard-linked-interactivity/CS/WpfDashboard_LinkedInteractivity/MainWindow.xaml.cs#L18

csharp
{
    mainDashboardControl.LoadDashboard("Data\\Dashboard.xml");
}

wpf-dashboard-how-to-update-extract-data-source-file/CS/MainWindow.xaml.cs#L13

csharp
InitializeComponent();
    dashboardControl1.LoadDashboard("update_data_extract_dashboard.xml");
}

wpf-dashboard-linked-interactivity/VB/WpfDashboard_LinkedInteractivity/MainWindow.xaml.vb#L16

vb
Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
    mainDashboardControl.LoadDashboard("Data\Dashboard.xml")
End Sub

wpf-dashboard-how-to-update-extract-data-source-file/VB/MainWindow.xaml.vb#L13

vb
InitializeComponent()
    dashboardControl1.LoadDashboard("update_data_extract_dashboard.xml")
End Sub

See Also

DashboardSource

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace