DialogPropertyValueEditor.DialogEditorTemplate 属性

更新:2007 年 11 月

获取或设置 DataTemplate,它由特定于宿主的对话框承载,并且其 DataContext 设置为 PropertyValue

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

语法

声明
Public Property DialogEditorTemplate As DataTemplate
用法
Dim instance As DialogPropertyValueEditor
Dim value As DataTemplate

value = instance.DialogEditorTemplate

instance.DialogEditorTemplate = value
public DataTemplate DialogEditorTemplate { get; set; }
public:
property DataTemplate^ DialogEditorTemplate {
    DataTemplate^ get ();
    void set (DataTemplate^ value);
}
public function get DialogEditorTemplate () : DataTemplate
public function set DialogEditorTemplate (value : DataTemplate)

属性值

类型:System.Windows.DataTemplate

作为此值编辑器的模板的 DataTemplate 对象。

备注

如果此属性返回 nullnull 引用(在 Visual Basic 中为 Nothing),则改为调用 ShowDialog 方法。

权限

另请参见

参考

DialogPropertyValueEditor 类

DialogPropertyValueEditor 成员

Microsoft.Windows.Design.PropertyEditing 命名空间

PropertyEntry

PropertyValue

PropertyValueEditorCommands

IInputElement

其他资源

属性编辑体系结构

WPF 设计器扩展性