.NET Core 3.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

View.Closing Event

Occurs when closing a View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll


public event EventHandler Closing
Public Event Closing As EventHandler

Event Data

The Closing event's data class is EventArgs.


This event occurs in the following cases:

  • In a Windows Forms appliction, when a Window that contains the current View is closed.
  • In any application, when the current View is replaced with another View.

To cancel closing of the current View, handle the View.QueryCanClose event and set the CancelEventArgs.Cancel parameter to true. By default, it is set to false.

To release additional resources used by the View which is going to be closed, handle the Closing event.

See Also