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 方法。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
另请参见
参考
Microsoft.Windows.Design.PropertyEditing 命名空间