Back to Devexpress

SimpleAction Class

expressappframework-devexpress-dot-expressapp-dot-actions.md

latest5.9 KB
Original Source

SimpleAction Class

A class that implements a Simple Action to execute custom code when a user clicks a button in an Action Container.

Namespace : DevExpress.ExpressApp.Actions

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public class SimpleAction :
    ActionBase
vb
Public Class SimpleAction
    Inherits ActionBase

The following members return SimpleAction objects:

Show 21 links

Remarks

The SimpleAction class inherits the basic functionality of Actions from the ActionBase class. Built-in Action Containers display Simple Actions as buttons. The SimpleAction.Execute event holds custom code that runs in response to button clicks.

Add a Simple Action

You can add a Single Choice Action to a Controller in code: see the Add a Simple Action (.NET) tutorial.

Alternatively, you can use the ActionAttribute to convert a business class’ method to an Action (see How to: Create an Action Using the Action Attribute).

Note

CodeRush allows you to add Actions and Controllers with a few keystrokes. To learn about the Code Templates for XAF , refer to the following help topic: XAF Templates.

Implements

ISupportUpdate

Inheritance

Object MarshalByRefObject Component ActionBase SimpleAction

See Also

SimpleAction Members

DevExpress.ExpressApp.Actions Namespace