ExtendedPropertyValueEditor 类
属性的任何和所有扩展编辑器逻辑的容器。
继承层次结构
System.Object
Microsoft.Windows.Design.PropertyEditing.PropertyValueEditor
Microsoft.Windows.Design.PropertyEditing.ExtendedPropertyValueEditor
命名空间: Microsoft.Windows.Design.PropertyEditing
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Class ExtendedPropertyValueEditor _
Inherits PropertyValueEditor
public class ExtendedPropertyValueEditor : PropertyValueEditor
public ref class ExtendedPropertyValueEditor : public PropertyValueEditor
type ExtendedPropertyValueEditor =
class
inherit PropertyValueEditor
end
public class ExtendedPropertyValueEditor extends PropertyValueEditor
ExtendedPropertyValueEditor 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
ExtendedPropertyValueEditor() | 初始化 ExtendedPropertyValueEditor 类的新实例。 | |
ExtendedPropertyValueEditor(DataTemplate, DataTemplate) | 使用指定的扩展和内联编辑器 DataTemplate 对象初始化 ExtendedPropertyValueEditor 类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
ExtendedEditorTemplate | 获取或设置 DataTemplate,它用于弹出/固定扩展编辑器。 | |
InlineEditorTemplate | 获取或设置用于内联编辑器的 DataTemplate。 (继承自 PropertyValueEditor。) |
页首
方法
名称 | 说明 | |
---|---|---|
Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) | |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) | |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) | |
GetType | 获取当前实例的 Type。 (继承自 Object。) | |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) | |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
备注
ExtendedPropertyValueEditor 类可以包含两个 DataTemplate 对象,一个用于内联编辑器,另一个用于扩展的编辑器。 内联编辑器提供了在“属性”窗口边界内显示的自定义界面,而扩展编辑器则提供在新窗口中显示的界面。
InlineEditorTemplate 属性返回内联编辑器的可视化界面的 XAML 模板,而 ExtendedEditorTemplate 属性则返回扩展编辑器的 XAML 模板。 这些通常在项目中其他地方的 ResourceDictionary 中提供。
应该使用 EditModeSwitchButton 调用自定义的 ExtendedPropertyValueEditor。有关演示,请参见演练:实现颜色编辑器。
示例
下面的代码示例演示如何使用 ExtendedPropertyValueEditor 类。 有关更多信息,请参见 演练:实现颜色编辑器。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
Microsoft.Windows.Design.PropertyEditing 命名空间