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

MessageOptions.CancelDelegate Property

Specifies a delegate that is executed on a Cancel button click in WinForms applications or close button click in Blazor applications.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v21.1.dll


public Action CancelDelegate { get; set; }

Property Value

Type Description

A Action that is executed on a Cancel button click.


WinForms UI

This parameter is supported in WinForms applications when the WinMessageOptions.Type property set to Flyout. The code snippet below demonstrates how to use this property.

using DevExpress.ExpressApp;
public class ProjectTaskController : ViewController {
    MessageOptions options = new MessageOptions();
    options.CancelDelegate = () => {
        //Place here your code that is executed on a Cancel button click.

Blazor UI

Use the CancelDelegate property to specify a delegate that is executed when a user clicks the notification’s close button.

See Also