.NET Standard 2.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

Controller.Actions Property

Returns a Controller‘s Action collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v21.2.dll


public ActionList Actions { get; }

Property Value

Type Description

A list of the current Controller’s Actions.


To manage the current Controller’s Actions list, use members of the ActionList object that this property returns. For example, use the Add, AddRange, and Clear methods or the Count property.

The following example demonstrates how to get the Task.MarkCompleted Action from this collection:

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.ExpressApp.Actions;
// ...
public class MyViewController : ViewController {
    protected override void OnActivated() {
        ObjectMethodActionsViewController controller = Frame.GetController<ObjectMethodActionsViewController>();
        if (controller != null) {
            SimpleAction markCompletedAction = controller.Actions["Task.MarkCompleted"] as SimpleAction;
            // ...
        // ...

Refer to the following help topic for information on how to get an identifier of an Action: Determine an Action’s Controller and Identifier.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Actions 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