All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Place an Action in a Different Location

This lesson explains how to move an Action to a different location. Here we show how to move the ClearTasksAction to the Edit Action Container. You defined this action in the Add a Simple Action lesson

You will move the ClearTasksAction to the Edit Action Container. You defined this action in the Add a Simple Action lesson.

NOTE

Before you proceed, take a moment to review the following lessons.

Step-by-Step Instructions

  1. In the MySolution.Module project, double-click the Model.DesignedDiffs.xafml file to invoke the Model Editor.
  2. In the Model Editor, navigate to the ActionDesign | ActionToContainerMapping node. Its child nodes correspond to the Action Containers. The Actions are mapped to Action Containers according to the Category property values. Expand the View node that is the View Action Container. Drag the ClearTasksAction child node to the Edit node. Set the node's Index to 0.

  3. Run the application. In the Task detail view, the ClearTaskAction button is displayed to the left of the Delete button.

    xaf blazor tutorial rearrange actions

TIP

You can handle the ActionControlsSiteController.CustomizeContainerActions event to change an Action location in code.

Next Lesson

Specify Action Settings

See Also