Skip to main content

DiagramControl.ExceptionMessage Event

Allows you to handle exceptions that may raise during various actions on the Diagram Control.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v24.1.dll

NuGet Package: DevExpress.Wpf.Diagram

Declaration

public event EventHandler<DiagramExceptionMessageEventArgs> ExceptionMessage

Event Data

The ExceptionMessage event's data class is DevExpress.Xpf.Diagram.DiagramExceptionMessageEventArgs.

Remarks

Exceptions may be raised when you or your end-user perform diagram loading/saving actions. By default, a message box is shown when an exception is caught. You can override this behavior with the ExceptionMessage event. For instance, you can use the MessageAction event parameter to suppress the notification or re-raise the exception.

The exception can be obtained via the event parameter’s Exception property.

See Also