windows:Windows/property-windows/usage-patterns

出自UXGuide.net

跳转到:导航, 搜索

属性窗口使用模式
Property Window Usage Patterns



属性窗口具有下列使用模式:

属性表

将单个对象的属性显示在无模式对话框内。

属性表对于对象来说是模式的——用户不关闭并重新打开对话框的话无法更改属性对象。属性表使用延迟提交:仅当用户单击“确定”或“应用”时更改才会生效。

Aa511264_PropWinPattern01(en-us,MSDN_10).png


在这个示例中,单个对象的属性显示在无模式对话框中。

多对象属性表

多个对象的属性显示在无模式对话框中。

这像是普通的属性表,但只显示对于对象集合有意义的属性。任何设置更改都将应用于其后所有的对象。

Aa511264_PropWinPattern02(en-us,MSDN_10).png


在这个示例中,属性表显示了多个对象的属性。处于混合状态的复选框表示选中的文件中是有一部分是只读的。对此属性的更改将应用于其后所有的对象。

Effective settings property sheets

The effective properties for a single object are displayed in a modeless dialog box.

This can be used when an object's actual properties are determined not only by the object's direct settings, but also by all its parent objects' settings (for example, this is the case for Group Policy). The controls are disabled because users cannot change them.

Aa511264_PropWinPattern03(en-us,MSDN_10).png


In this example, the property sheet displays the effective Group Policy, which is determined by the object's properties and the properties of all its parents.

Options dialog boxes

Properties for an application are displayed in a modal dialog box.

Like property sheets, options dialog boxes use a delayed commit, so changes take effect only when users click OK. Unlike property sheets, options dialog boxes:

  • Consist of application settings, but not application attributes. About boxes are used to display application attributes.
  • Are modal to the application.
  • Rarely need an Apply button.

Aa511264_PropWinPattern04(en-us,MSDN_10).png


In this example, an application's options are displayed in a dialog box.

Property inspectors

Properties for the current selection (a single object or group of objects) are displayed in a modeless window pane or undocked window.

Unlike property sheets, property inspectors display the properties of the currently selected objects. They use an immediate commit (properties are changes as soon as users make changes), so OK, Cancel, and Apply buttons aren't needed.

Aa511264_PropWinPattern05(en-us,MSDN_10).png


In this example from Microsoft® Visual Studio®, an object's properties are displayed in a grid within a modeless window pane.

Aa511264_PropWinPattern06(en-us,MSDN_10).png


In this example, a picture's properties are displayed in a modeless window pane. All the properties except for Size can be changed by the user.

导航
工具箱