The requested page is not available for the requested platform. You are viewing the content for Default platform.

MessageOptions.CancelDelegate Property

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public Action CancelDelegate { get; set; }
Public Property CancelDelegate As Action

Property Value

Type Description
Action

A Action that is executed on a Cancel button click.

Remarks

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.
    };
    //…
    Application.ShowViewStrategy.ShowMessage(options);
}
See Also