zoukankan      html  css  js  c++  java
  • 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。

  • 相关阅读:
    数据库镜像搭建
    关于开发人员数据库权限配置以及规范数据库升级流程
    带CheckBox列头的DataGridView
    查询整个数据库中某个特定值所在的表和字段的方法
    SQL Server 2008中获取数据库所有表及其字段名称、类型、长度的SQL
    关于已经上线项目的升级的启示
    SQL语句恢复数据库时一直显示“正在还原”
    带CheckBox列头的DataGridView(一)
    SQL Server中事务处理的注意事项
    group by 使用
  • 原文地址:https://www.cnblogs.com/foreachlife/p/Toggle-the-WinForms-Ribbon-Interface.html
Copyright © 2011-2022 走看看