dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-1ab845fa.md
Gets the current dashboard state.
Namespace : DevExpress.DashboardWpf
Assembly : DevExpress.Dashboard.v25.2.Wpf.dll
NuGet Package : DevExpress.Wpf.Dashboard
public DashboardState GetDashboardState()
Public Function GetDashboardState As DashboardState
| Type | Description |
|---|---|
| DashboardState |
A DashboardState object that contains modifications produced by end-user interaction.
|
Refer to the Manage Dashboard State document for details about a dashboard state.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetDashboardState() 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.
{
var dState = dashboardControl.GetDashboardState();
var stateValue = dState.SaveToXml().ToString(SaveOptions.DisableFormatting);
Private Sub Window_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
Dim dState = dashboardControl.GetDashboardState()
Dim stateValue = dState.SaveToXml().ToString(SaveOptions.DisableFormatting)
See Also