Back to Devexpress

Actions (Menu Commands)

expressappframework-112622-ui-construction-controllers-and-actions-actions.md

latest4.1 KB
Original Source

Actions (Menu Commands)

  • Jun 11, 2021

This article provides general information about Actions:

Action Definition

Actions are abstract UI elements that allow end-users to interact with XAF applications.

In the UI, XAF can display Actions as the following controls:

Control NameControl Appearance
A toolbar button
A context menu item
An editor
A simple button
Other controls-

You can access and modify the control associated with an Action in the ActionBase.CustomizeControl event handler.

Action Types

XAF Actions can be of different types:

You can also create custom Action types and custom controls.

Actions are located in Action Containers. To access all Actions in an Action Container, use the container’s IActionContainer.Actions property.

Actions belong to Controllers. Use the Controller.Actions property to access a Controller’s Action collection.

Action Locations

XAF places Actions in the locations listed below.

Action Implementation and Customization

You can customize Actions in your application in two ways:

You can also create custom Action types and custom controls.