Skip to main content
.NET 8.0+

DialogController.CancelAction Property

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

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public SimpleAction CancelAction { get; }

Property Value

Type Description
SimpleAction

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

Remarks

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