dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-dot-loaddashboard-x28-system-dot-string-x29.md
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
public void LoadDashboard(
string path
)
Public Sub LoadDashboard(
path As String
)
| Name | Type | Description |
|---|---|---|
| path | String |
A String that specifies the path to an XML file that contains the dashboard.
|
The following code snippet shows how to load a dashboard located in the project’s Data folder:
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
{
mainDashboardControl.LoadDashboard("Data\\Dashboard.xml");
}
wpf-dashboard-how-to-update-extract-data-source-file/CS/MainWindow.xaml.cs#L13
InitializeComponent();
dashboardControl1.LoadDashboard("update_data_extract_dashboard.xml");
}
wpf-dashboard-linked-interactivity/VB/WpfDashboard_LinkedInteractivity/MainWindow.xaml.vb#L16
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
InitializeComponent()
dashboardControl1.LoadDashboard("update_data_extract_dashboard.xml")
End Sub
See Also