PropertyValueEditorCommands 类

更新:2007 年 11 月

提供在用户编辑属性时控制属性窗口行为的标准命令。

命名空间:  Microsoft.Windows.Design.PropertyEditing
程序集:  Microsoft.Windows.Design(在 Microsoft.Windows.Design.dll 中)

语法

声明
Public NotInheritable Class PropertyValueEditorCommands
用法
不需要声明静态类的实例来访问其成员。
public static class PropertyValueEditorCommands
public ref class PropertyValueEditorCommands abstract sealed
public final class PropertyValueEditorCommands

备注

当用户在属性窗口中编辑属性时,该窗口应展示一些标准行为。

编辑属性的操作应包装在事务中。例如,用户可以通过按 Enter 键提交编辑,通过按 Esc 键取消编辑。

此属性窗口应为用户提供针对属性的不同编辑模式(如果可用)。用户可以使用以下类型的属性编辑器:

  • 内联编辑器。例如 Margin 属性编辑器,在该编辑器中,用户直接在属性行中键入属性值。

  • 扩展编辑器。例如 HorizontalAlignment 属性编辑器,在该编辑器中,用户从下拉列表中选择属性值。

  • 对话框编辑器。例如 RowDefinitions 属性编辑器,在该编辑器中,用户在单独的对话框中输入属性值。

  • 固定的编辑器,它是一个固定到属性窗口中属性下方的对话框。

继承层次结构

System.Object
  Microsoft.Windows.Design.PropertyEditing.PropertyValueEditorCommands

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

PropertyValueEditorCommands 成员

Microsoft.Windows.Design.PropertyEditing 命名空间

PropertyValueEditor

PropertyContainerEditMode

Inline

ExtendedPopup

Dialog

ExtendedPinned

其他资源

WPF 设计器扩展性体系结构