Back to Devexpress

Add a Simple Action Using an Attribute

expressappframework-402156-getting-started-in-depth-tutorial-blazor-add-actions-menu-commands-add-a-simple-action-using-an-attribute.md

latest2.0 KB
Original Source

Add a Simple Action Using an Attribute

  • Sep 20, 2023
  • 2 minutes to read

This lesson explains how to use methods of an entity class to add a Simple Action.

The instructions below show how to add a new method with the ActionAttribute attribute to the DemoTask class.

Note

Before you proceed, take a moment to review the previous lessons:

Step-by-Step Instructions

  1. Add the Postpone method to the DemoTask class:

  2. Run the application. Select the Task item in the navigation control.

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.

Next Lesson

Add an Item to the Navigation Control

See Also

Controllers (UI Logic & Interaction)

Actions (Menu Commands)

ActionAttribute

Use ActionAttribute to Add an Inline Action to a List View Grid