Occurs when an exception is triggered while the WinWindow is being closed.
NuGet Package: DevExpress.ExpressApp.Win
The CustomHandleExceptionOnClosing event's data class is HandleExceptionEventArgs. The following properties provide information specific to this event:
|Exception||Specifies an exception triggered while a WinWindow is being closed.|
|Handled||Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs.|
Handle this event to manually process an exceptional situation occurring while the Window is being closed. The CustomHandleExceptionEventArgs.Exception property specifies the original exception. Perform the actions required to correct it and set the Handled argument passed into the event handler to true, to suppress the original exception.