Occurs after the current dashboard opened in the DashboardDesigner is being closed.
public event DashboardClosingEventHandler DashboardClosing
Public Event DashboardClosing As DashboardClosingEventHandler
The DashboardClosing event handler receives an argument of the DashboardClosingEventArgs type. The following properties provide information specific to this event.
|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 form containing the DashboardDesigner control is closed;
- a new dashboard is created;
- a new dashboard is opened.
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.