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

DialogController.CancelAction Property

Provides access to the current Dialog Controller's Cancel Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v20.2.dll


public SimpleAction CancelAction { get; }
Public ReadOnly Property CancelAction As SimpleAction

Property Value

Type Description

A SimpleAction object representing the Dialog Controller's Cancel Action.


The Dialog Controller contains the Cancel Action. This Action is available if it has a caption. To execute this Action, press the current pop-up Window's cancel button. When executing this Action, the pop-up Window is closed.

The Cancel Action's ActionBase.ActionMeaning property is set to ActionMeaning.Cancel, by default.

To change any of the Cancel Action's settings (ActionBase.Caption, ActionBase.Active), use the CancelAction property. To perform custom code before executing this Action, handle the Dialog Controller's DialogController.Cancelling event. To change the default behavior of this Action, use the Dialog Controller's DialogController.CanCloseWindow property

By default, the Cancel Action is displayed by the "PopupActions" Action Container. To change this behavior, use the DialogController.DialogActionContainerName field. If you set another Action Container for this field, be sure that it is contained in the Template that displays your pop-up Window.

See Also