Skip to main content
.NET Standard 2.0+

DialogController.CancelAction Property

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

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v22.1.dll


public SimpleAction CancelAction { get; }

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CancelAction property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also