Toggle the WinForms Ribbon Interface 切换 WinForms 功能区界面

In this lesson, you will learn how to enable/disable the Ribbon User Interface in your application.

在本课中,您将学习如何在应用程序中启用/禁用功能区用户界面。

Note 注意
Before proceeding, take a moment to review the Create a Solution using the Wizard lesson.

在继续之前,请花点时间查看使用向导课创建解决方案。

 

  • Invoke the Model Editor by double-clicking the Model.xafml file from the MySolution.Win project. Navigate to the Options node. This node allows you to edit different UI settings of the application. In the FormStyle property's dropdown list, select Ribbon.

  • 通过双击 MySolution.Win 项目中的 Model.xafml 文件来调用模型编辑器。导航到选项节点。此节点允许您编辑应用程序的不同 UI 设置。在 FormStyle 属性的下拉列表中,选择功能区。

    RibbonME

    Note 注意
    Additional ribbon options are available in the Options | RibbonOptions node.

    "选项"中提供了其他功能区选项 |功能区选项节点。

 

  • Run the WinForms application to view the result.

  • 运行 WinForms 应用程序以查看结果。
  • Ribbon UI
  • 功能区 UI

Ribbon

  • Standard UI
  • 标准 UI

Non-Ribbon

 

Note 注意
The Ribbon UI provides the Quick Access Toolbar. You can place frequently used Actions on this toolbar to improve the usability of your application. To add a certain Action to this toolbar, navigate to the ActionDesign | Actions | <Action> node and set the QuickAccess property to "True".

功能区 UI 提供快速访问工具栏。您可以在此工具栏上放置常用操作,以提高应用程序的可用性。要向此工具栏添加特定操作,导航到操作设计 |操作 |<Action>节点并将"快速访问"属性设置为"True"。

 

In the Main Demo, a separate WinForms project is created to demonstrate the Ribbon UI.

在主演示中,将创建一个单独的 WinForms 项目来演示功能区 UI。

posted @ 2019-12-17 16:17  code first life  阅读(227)  评论(0编辑  收藏  举报