初始化 DialogPropertyValueEditor 类的新实例。
命名空间: Microsoft.Windows.Design.PropertyEditing
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Sub New ( _
dialogEditorTemplate As DataTemplate, _
inlineEditorTemplate As DataTemplate _
)
public DialogPropertyValueEditor(
DataTemplate dialogEditorTemplate,
DataTemplate inlineEditorTemplate
)
public:
DialogPropertyValueEditor(
DataTemplate^ dialogEditorTemplate,
DataTemplate^ inlineEditorTemplate
)
new :
dialogEditorTemplate:DataTemplate *
inlineEditorTemplate:DataTemplate -> DialogPropertyValueEditor
public function DialogPropertyValueEditor(
dialogEditorTemplate : DataTemplate,
inlineEditorTemplate : DataTemplate
)
参数
- dialogEditorTemplate
类型:System.Windows.DataTemplate
承载在特定于宿主的对话框中的 DataTemplate,它的 DataContext 设置为与正在编辑的属性对应的 PropertyValue。
- inlineEditorTemplate
类型:System.Windows.DataTemplate
用于内联编辑器的 DataTemplate。如果使用,则它的 DataContext 将设置为与正在编辑的属性对应的 PropertyValue。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.PropertyEditing 命名空间