dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-7842d1c5.md
Occurs after the current dashboard opened in the DashboardDesigner is being closed.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
public event DashboardClosingEventHandler DashboardClosing
Public Event DashboardClosing As DashboardClosingEventHandler
The DashboardClosing event's data class is DashboardClosingEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Dashboard | Gets the dashboard which is being closed. |
| IsDashboardModified | Gets or sets whether the dashboard has been modified since the last save. |
The DashboardClosing event is raised in the following cases:
The DashboardClosingEventArgs.IsDashboardModified property allows you to specify the modification state of the dashboard based on your requirements. Use the DashboardClosingEventArgs.Dashboard property to access the dashboard which is being closed.
The following code snippets (auto-collected from DevExpress Examples) contain references to the DashboardClosing event.
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.
winforms-dashboard-designer-merge-dashboards-to-tabs/CS/DesignerForm.cs#L19
dashboardDesigner.UpdateDashboardTitle();
dashboardDesigner.DashboardClosing += DashboardDesignerDashboardClosing;
}
winforms-designer-save-and-apply-dashboard-state/CS/WinDesignerDashboardState/DesignerForm1.cs#L12
InitializeComponent();
dashboardDesigner.DashboardClosing += dashboardDesigner_DashboardClosing;
dashboardDesigner.SetInitialDashboardState += dashboardDesigner_SetInitialDashboardState;
winforms-dashboard-designer-merge-dashboards-to-tabs/VB/DesignerForm.vb#L20
dashboardDesigner.UpdateDashboardTitle()
AddHandler dashboardDesigner.DashboardClosing, AddressOf DashboardDesignerDashboardClosing
End Sub
winforms-designer-save-and-apply-dashboard-state/VB/WinDesignerDashboardState/DesignerForm1.vb#L12
InitializeComponent()
AddHandler dashboardDesigner.DashboardClosing, AddressOf dashboardDesigner_DashboardClosing
AddHandler dashboardDesigner.SetInitialDashboardState, AddressOf dashboardDesigner_SetInitialDashboardState
See Also