windows:Commands/ribbons/design-concepts

出自UXGuide.net

跳转到:导航, 搜索

功能区:设计理念
Ribbons: Design Concepts

目录


这样的用户界面是否正确?

考虑下列问题以进行判断:

程序类型

可发现性及学习问题

命令特征

命令规模

最后,考虑这个根本问题:与在可发现性、易学习性、效率及生产力方面的提升相比,使用选项卡组织命令所需的额外空间是否值得?如果值得,则使用 Ribbon 绝对是好的选择。如果你不能确定的话,可以考虑使用可用性测试来对基于 Ribbon 的设计和最佳的替换设计进行比较。

Ribbon 是一种新的迷人的命令呈现方式,也是程序现代化的重要方式。但与其绚丽的外表不同,它并非所有程序的最佳选择。

错误:

Cc872782_Ribbon02(en-us,MSDN_10).png
请不要这么做!

设计理念

将 Ribbon 应用于已有的程序

尽管你可以仅仅简单地将一个现有程序的传统菜单栏和工具栏设计重组为 Ribbon 形式,但这么做会损失 Ribbon 能够带来的的大部分价值。Ribbon 在用于呈现即时性的、结果导向的命令时最有价值,这往往出现在 Gallery 和实时预览形式中。结果导向命令可以使得命令更容易理解,使用起来更加方便高效。因此,最好是对你的程序执行命令的方式进行完全重设计,而非简单地重组现有的命令。

不要把创建高效的 Ribbon 想得过于简单,也不要觉得只要用了 Ribbon 你的程序就会一下子变得好用。创建高效的 Ribbon 是需要大量的时间和精力的,对于这种命令重新设计来说,是否愿意投入时间和精力是是否要使用 Ribbon 的重要考虑因素。

更多关于将现有程序的命令移植至 Ribbon 的信息,参见 Ribbon 设计流程

Ribbon 的自然特性

与传统的菜单栏和工具栏相比,Ribbon 具有以下特性:

通过将大多数命令用带标签的图标呈现,Ribbon 命令兼顾了可视性与自说明性,工具提示仅用于提供辅助信息。很少需要为了理解一个命令而转至别处(比如帮助)。
通过将命令用带标签的分组来组织,Ribbon 中的命令更加易于查找,其用途也更加明确。
Ribbon 命令占用的空间比工具栏命令多,它通过选项卡来适应不同的命令数量规模。这种选项卡的用法使得 Ribbon 具有模式化的特点,偶尔用户需要切换模式来寻找命令。不过,单个选项卡中的大部分命令都是直接命令,或者是一个分割按钮或菜单按钮,而非层级化的命令。
相比而言,Ribbon 则通过 Keytip 提供了增强的键盘可访问性,通常为以下三步:
  1. 按下 Alt 进入 Keytip 模式。
  2. 按下一个字符以选择选项卡、应用程序按钮或是快速访问工具栏中的命令。
  3. 在选项卡中,按下一个或两个字母以选择一个命令。
这种方法是高度可视化的。而且也更加灵活,分配多个助记访问键使得它可以更好地适应不同的命令数量规模。
不要把访问键与快捷键搞混。虽然访问键和快捷键都是为用户界面提供键盘访问,但他们具有不同的用途和设计规范。更多信息,参见键盘

富命令的自然特性

Rich commands refer to the presentation and interaction of commands used by Ribbons, without necessarily using a Ribbon container. Rich commands have these characteristics:

Correct:
Cc872782_Ribbon17(en-us,MSDN_10).png
These commands are extremely well known so they don't need labels.
Incorrect:
Cc872782_Ribbon18(en-us,MSDN_10).png
These unintelligible icons require labels for rich commands.
Cc872782_Ribbon19(en-us,MSDN_10).png
In this example, the most frequently used button is larger than the others.
Cc872782_Ribbon21b(en-us,MSDN_10).png
Cc872782_Ribbon21a(en-us,MSDN_10).png
In this example, the command buttons resize to work well in the available space.
Cc872782_Ribbon22(en-us,MSDN_10).png
In this example, the Save As command uses a split button, where the main button performs the most common variation and the menu portion reveals a menu with variations of the command.
Cc872782_Ribbon23(en-us,MSDN_10).png
In these examples, clicking a menu button displays a list of choices that show their effect.
Cc872782_Ribbon24(en-us,MSDN_10).png
Live previews show the results of applying a formatting option on hover.
Cc872782_Ribbon25(en-us,MSDN_10).png
Enhanced tooltips concisely explain their associated commands.

While Ribbons might not be suitable for all programs, all programs can potentially benefit from rich commands.

Ribbon 总是包含应用程序按钮和快速访问工具栏

The Application button and Quick Access Toolbar provide commands that are useful in any context, thus reducing the need to change tabs. While these three components are logically independent, a Ribbon must always have an Application button and Quick Access Toolbar. Given that commands can go in either the Ribbon or the Application button, you might be wondering where to place commands. The choice is not arbitrary.

The Application button is used to present a menu of commands that involve doing something to or with a file, such as commands that traditionally go in the File menu to create, open, and save files, print, and send and publish documents.

By contrast, the Ribbon itself is for commands that affect the content of the window. Examples include commands used to read, modify, or use the content, or change the view.

If you use a Ribbon, you must also use an Application button even if your program doesn't involve documents or files. In such cases, use the Application button menu to present commands for printing, program options, and exiting the program. While arguably the Application button isn't necessary for such programs, using it provides consistency across programs. Users don't have to hunt for save and undo commands or program options because they are always in the same place.

The Quick Access Toolbar is required even if the Ribbon only uses one tab. Again, while arguably such programs don't need a Quick Access Toolbar (because all the commands are already present on the single tab), having a customizable Quick Access Toolbar provides consistency across programs. For example, if users are in the habit of clicking the Print command, they should be able to do so in any program that uses a Ribbon.

但应用程序按钮可以离开 Ribbon 单独使用

Some programs such as document viewers or browsers use files but have few commands that modify their content. Alternatively, they may have a few content-related commands that are better presented inline. In such cases, rather than use a menu bar, toolbar, or Ribbon with little or nothing in them, you can use an Application button for the file-related commands.

On the other hand, never combine an Application button with a menu bar or toolbar. Such combinations result in unnecessary inconsistency in command models.

Incorrect:

Cc872782_Ribbon30(en-us,MSDN_10).png

In this example, an Application button is used incorrectly to replace the File menu.

组织与可发现性

By providing tabs and groups, Ribbons allow you to organize your commands to aid discoverability. The challenge is that if the organization is done poorly, it can greatly harm discoverability instead. There should be a clear, obvious, and unique mapping between your commands and the descriptively labeled tabs and groups where they reside.

Users will form a mental model of the Ribbon after using it for a while. If that mental model doesn't make sense to users, is inefficient, or is incorrect, it will lead to confusion and frustration. Your most important goal in designing a Ribbon is to facilitate finding commands quickly and confidently. If you do not accomplish this, your Ribbon design will fail. Achieving this goal requires careful design, user testing, and iteration. Don't assume that it will be easy.

Here are some common pitfalls to avoid:

Cc872782_Ribbon31(en-us,MSDN_10).png
In this example, you can change paragraph borders through the Page Borders command, even though there is a more direct path on the Home tab. If users looking for paragraph borders were to stumble across this unexpected path, they might easily assume that it's the only path.

选项卡

The best first step is to review the standard Ribbon tabs. If your program's commands map naturally into the standard tabs, base your tab organization on these standards. On the other hand, if you program's commands don't map naturally, don't try to force it. Determine a more natural structure, and be sure to perform a lot of user testing to make sure that you've got it right.

For non-standard tabs, consider these issues:

The Home tab is an exception to these considerations. While you don't have to have a Home tab, most programs should. The Home tab is the first tab, and contains the most frequently used commands. If you have frequently used commands that don't fit into the other tabs, the Home tab is the right place for them.

If you can't determine a meaningful, descriptive tab name, it is probably because the tab isn't well designed. If your Ribbon organization just isn't working, reconsider your tab design.

分组

Dividing commands into groups structures the commands into related sets. The group label explains the common purpose of its commands.

There are a variety of factors to consider when determining groups and their presentation:

If you can't determine a meaningful, descriptive name, it is probably because the group isn't well designed.

预览

You can use various types of previews to show what will result from a command. By using helpful previews, you can improve the efficiency of your program and reduce the need for the trial-and-error learning approach. Live previews also invite experimentation and encourage creativity.

Here are some of the different types of previews that you can use:

Live previews are a powerful feature that can really improve your users' productivity, but even simple static previews can be a big help.

Ribbon 缩放

Scaling a toolbar is simple: if a window is too narrow to display a toolbar, the toolbar displays what fits and makes everything else accessible through an overflow button.

Cc872782_Ribbon45(en-us,MSDN_10).png
Toolbars scale using an overflow button.

A goal of rich commands is to take full advantage of the available space, so scaling a Ribbon requires more design work. There is no default Ribbon size, so you should not design a Ribbon with a particular width in mind. You have to design layouts with a wide range of widths and realize that any one of them could be the one most of your users will see. Scaling is a fundamental part of Ribbon design, not the last step.

Cc872782_Ribbon46(en-us,MSDN_10).png
There is no default Ribbon size. The smallest size is a single pop-up group icon.

When designing a tab, specify the different layouts for each group (up to three) as well as the combinations that can be used together. The Ribbon will show the largest valid combination that fits the current window size.


If you do only seven things...

  1. Choose a command solution that is suitable for your program type. Using a Ribbon should make a program feel simpler, more efficient, and easier to use—never the opposite. If using a Ribbon isn't appropriate, consider using rich commands instead.
  2. Don't underestimate the challenge of creating an effective Ribbon. And don't take for granted that using a Ribbon automatically makes your program better. Being willing to commit the time and effort required for a command redesign is an important factor in deciding to use a Ribbon.
  3. Make the commands discoverable. Choose a tab design that has a clear, obvious, unique mapping between your commands and the descriptively labeled tabs where they reside. Users should be able to determine quickly and confidently which tab has the command they are looking for, and rarely choose the wrong tab.
  4. Make the commands self-explanatory. Users should understand the effect of a command from its label, icon, tooltip, and preview. They shouldn't have to experiment or read a Help topic to see how a command works.
  5. Make using the commands efficient:
    • Users should spend most of their time on the Home tab.
    • Users should rarely have to change tabs during common tasks.
    • When the window is maximized and users are on the correct tab, the most frequently used commands have the most visual emphasis and users can invoke them with a single click. Users can perform all other commands on the tab with at most four clicks.
    • Users shouldn't have to open dialog boxes to give commands and change attributes in common tasks.
  6. Help users choose commands and options confidently and minimize the need for trial-and-error. Use results-oriented commands whenever appropriate, often in the form of galleries and live previews.
  7. Make sure the Ribbon scales well from the largest window sizes to the smallest.


注释与引用

  1. ^ 根据 Microsoft Office 2007 简体中文版网站的相关说明,Gallery 被称为“库”。为避免歧义,本文将称其为 Gallery。
  2. ^ 根据 Microsoft Office 2007 简体中文版的翻译,Home 选项卡被称为“开始”,为避免歧义,本文将称其为 Home 选项卡。
导航
工具箱