Back to Devexpress

ActionBase.ActionMeaning Property

expressappframework-devexpress-dot-expressapp-dot-actions-dot-actionbase-106eceb2.md

latest3.3 KB
Original Source

ActionBase.ActionMeaning Property

Specifies whether an Action is represented by an accept, cancel or ordinal button in a Window Forms application’s pop-up Windows.

Namespace : DevExpress.ExpressApp.Actions

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[DefaultValue(ActionMeaning.Unknown)]
public ActionMeaning ActionMeaning { get; set; }
vb
<DefaultValue(ActionMeaning.Unknown)>
Public Property ActionMeaning As ActionMeaning

Property Value

TypeDefaultDescription
ActionMeaningUnknown

An ActionMeaning enumeration value.

|

Available values:

NameDescription
Unknown

An Action which is displayed in a pop-up Window is executed when an end-user clicks it or uses a predefined shortcut.

| | Accept |

An Action which is displayed in a pop-up Window is executed when an end-user presses ENTER.

| | Cancel |

An Action, which is displayed in a pop-up Window, is executed when an end-user presses ESC.

|

Remarks

This property is considered for Actions that are displayed in pop-up Windows in Windows Forms applications. The following values are available:

  • ActionMeaning.Accept

  • ActionMeaning.Cancel

  • ActionMeaning.Unknown

You can add an Action to a pop-up Window. For this purpose, set its ActionBase.Category property to the “ObjectsCreation” or “PopupActions” value. This, means that the Action will be mapped to the ObjectsCreation or PopupActions Action Container. So, the Action will be displayed in pop-up Windows which are represented by the LookupControlTemplate or PopupForm Template, because the former contains both these Action Containers and the former - the “PopupActions” Action Container.

You can process the ActionMeaning property in a custom Action Container. In this instance, do not forget to add this Container to a built-in Template or a custom one (see How to: Create a Custom WinForms Ribbon Template).

See Also

ActionBase Class

ActionBase Members

DevExpress.ExpressApp.Actions Namespace