其他分享
首页 > 其他分享> > Place an Action in a Different Location 设置按钮的显示位置

Place an Action in a Different Location 设置按钮的显示位置

作者:互联网

In this lesson, you will learn how to place an Action in the required place. For this purpose, the ClearTasksAction that was defined in the Add a Simple Action lesson will be used. It is located together with the SaveTo, ExecuteReport and Refresh Actions. This Actions group is called View Action Containers (the ActionBase.Category property is set to "View" when implementing the ClearTasksAction). The remaining Actions are distributed among other Action Containers. In this lesson, you will move the ClearTasksAction to the RecordEdit Action Container.

在本课中,您将学习如何将 Action 放在所需位置。为此,将使用在"添加简单按钮"一课中定义的"清除任务操作"。它与"保存到""执行报告和刷新操作"一起位于。此操作组称为"查看操作容器"(在实现清除任务操作时,ActionBase.类别属性设置为"查看"。)。其余操作分布在其他操作容器中。在本课中,您将清除任务操作移动到记录编辑操作容器。

 

Note 注意

Before proceeding, take a moment to review the following lessons.

在继续之前,请花点时间复习以下课程。

 

Tip 提示

You can also change an Action location in code by handling the ActionControlsSiteController.CustomizeContainerActions event.

您还可以通过处理操作控制站点控制器来更改代码中的操作位置。

Tutorial_BMD_Lesson4_1

Tutorial_UIC_Lesson1_1

The XAF application interface is based on the Application Model. The Model Editor is a tool for browsing and editing the Application Model. This tool is integrated in Visual Studio and displayed as a window pane. Commands specific to the Model Editor are available in the XAF Model Editor toolbar.

XAF 应用程序接口基于应用程序模型。模型编辑器是一个用于浏览和编辑应用程序模型的工具。此工具集成在 Visual Studio 中,并显示为窗口窗格。特定于模型编辑器的命令在 XAF 模型编辑器工具栏中可用。

ModelEditor_DesignToolbar

If the XAF Model Editor toolbar is hidden, you can make it visible by checking the XAF Model Editor item in the VIEW | Toolbars menu.

如果 XAF 模型编辑器工具栏处于隐藏状态,则可以通过选中 VIEW 中的 XAF 模型编辑器项使其可见 |工具栏菜单。

ModelEditor_DesignToolbar_Show

Note 注意

To learn more about Model Editor capabilities, refer to the Model Editor topic.

要了解有关模型编辑器功能的详细信息,请参阅模型编辑器主题。

Tutorial_UIC_Lesson1_2

Note 注意

Alternatively, you can use the context menu's Copy, Paste, Delete and Clone commands to modify the Application Model structure. The modified parts of the Application Model are displayed with a bold font. You can revert any node with all of its child nodes to their original state via the context menu's Reset Differences command.

或者,您可以使用上下文菜单的"复制"、"粘贴"、"删除和克隆"命令来修改应用程序模型结构。应用程序模型的修改部分以粗体显示。您可以通过上下文菜单的"重置差异"命令将其所有子节点的任何节点还原到其原始状态。

Tutorial_UIC_Lesson1_3

You can see the changes made in the lesson in the Model Editor invoked for the Model.DesignedDiffs.xafml file located in the Main Demo | MainDemo.Module project. The MainDemo application is installed in %PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp Framework\MainDemo by default. The ASP.NET version is available online at http://demos.devexpress.com/XAF/MainDemo/

您可以在为模型调用的模型编辑器中看到该课程所做的更改。主演示模块项目。主演示应用程序安装在%PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp Framework\MainDemo by default. The ASP.NET version is available online at http://demos.devexpress.com/XAF/MainDemo/

.

 

标签:Different,编辑器,Place,Location,Action,操作,Model,XAF,Editor
来源: https://www.cnblogs.com/foreachlife/p/Place-an-Action-in-a-Differen-Location.html