Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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