Skip to main content
All docs
V23.2
.NET 6.0+

How to: Modify Action Properties in the Model Editor

  • 2 minutes to read

This article describes how to modify an Action’s properties in the Model Editor. This tool allows you to browse and edit an Application Model in Visual Studio.

An Action is an abstract UI element. XAF generates the default UI based on the business classes you declare and the Application Model.

An Application Model is metadata that defines the navigation structure, data display formats, and available commands. It has a neutral format that you can adapt to any target platform.

Note

For the purposes of this article, you can use the MainDemo application installed as a part of the XAF package. The default location of the application is %PUBLIC%\Documents\DevExpress Demos 23.2\Components\XAF.

The instructions below explain how to change the tooltip and the confirmation message of the Clear Tasks button in the Main Toolbar.

  1. In the Solution Explorer, expand the MainDemo.Module project and double-click the Model.DesignedDiffs.xafml file to open it in the Model Editor.

    Application Model file, DevExpress

  2. Navigate to the ActionDesign | Actions | ClearTasksAction node. In the right pane, find the Misc section of the properties.

    Misc properties section of the ClearTasksAction node, DevExpress

  3. Set the ConfirmationMessage property to This action will remove all tasks of the current Employee. Do you still want to proceed?.

  4. Set the Tooltip property to Clear the task list of the current Employee.
  5. Save the changes and run the application. Open the Employee Detail View. Hover the mouse pointer over the Clear Tasks button to see the tooltip:

    ASP.NET Core Blazor
    ASP.NET Core Blazor - new tooltip, DevExpress
    Windows Forms
    Windows Forms - new tooltip, DevExpress
  6. Click the Clear Tasks button to see the confirmation message:

    ASP.NET Core Blazor
    ASP.NET Core Blazor - new confirmation message, DevExpress
    Windows Forms
    Windows Forms - new confirmation message, DevExpress

Note

You can also modify Action properties in code. Refer to the following topics for details:

Add a Simple Action
Describes how to implement a custom Action.
Customize Controllers and Actions
Explains how to customize a built-in Action or a third-party module Action.
See Also