Skip to main content
A newer version of this page is available. .

Messaging.ConfirmationDialogClosed Event

Occurs after the confirmation dialog is closed.

Namespace: DevExpress.ExpressApp.Win.Core

Assembly: DevExpress.ExpressApp.Win.v18.2.dll

Declaration

public static event EventHandler<ConfirmationDialogClosedEventArgs> ConfirmationDialogClosed

Event Data

The ConfirmationDialogClosed event's data class is ConfirmationDialogClosedEventArgs. The following properties provide information specific to this event:

Property Description
DialogResult Gets the dialog box return value.

Remarks

The ConfirmationDialogClosed event is raised when executing the Messaging.Show method. Handle this event to perform custom actions after the confirmation dialog is closed. Use the handler’s ConfirmationDialogClosedEventArgs.DialogResult parameter to get the user choice.

static class Program {
    static void Main() {
        // ...
        Messaging.ConfirmationDialogClosed += Messaging_ConfirmationDialogClosed;
        // ...
        winApplication.Setup();
        winApplication.Start();
        // ...
    }
    static void Messaging_ConfirmationDialogClosed(\
        object sender, ConfirmationDialogClosedEventArgs e) {
        // Place your code here. Use e.DialogResult value as required.
    }
}

For more sophisticated customizations, implement a custom Messaging descendant, as detailed in the How to: Implement a Custom Messaging Class.

See Also