Customize Navigation Between Views(自定义视图之间的导航)
In the Define the Data Model and Set the Initial Data section of this tutorial, you learned how to customize the navigation control in code. You added attributes to an entity class that added a corresponding item to the navigation control and specified the name of this class in the UI.
在本教程的定义数据模型和设置初始数据部分中,您学习了如何在代码中自定义导航控件。您向实体类添加了属性,该实体类向导航控件添加了相应的项目,并在UI中指定了该类的名称。
In this section, you will learn how to customize the navigation control in the Application Model. For this purpose, you can use the Model Editor – an XAF native tool to edit the Application Model at design time. You can open it directly from Visual Studio. You can also allow users to invoke the Model Editor at runtime.
在本节中,您将学习如何自定义应用程序模型中的导航控件。为此,您可以使用模型编辑器-一个XAF本机工具在设计时编辑应用程序模型。您可以直接从Visual Studio打开它。您还可以允许用户在运行时调用模型编辑器。
- Add an Item to Navigation Control(将项目添加到导航控件)
- Rename and Rearrange Navigation Items(重命名和重新排列导航项)