DialogPropertyValueEditor.ShowDialog 方法

DialogEditorTemplate 为 nullnull 引用(在 Visual Basic 中为 Nothing) 并且用户已经调用对话框时调用。

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

语法

声明
Public Overridable Sub ShowDialog ( _
    propertyValue As PropertyValue, _
    commandSource As IInputElement _
)
public virtual void ShowDialog(
    PropertyValue propertyValue,
    IInputElement commandSource
)
public:
virtual void ShowDialog(
    PropertyValue^ propertyValue, 
    IInputElement^ commandSource
)
abstract ShowDialog : 
        propertyValue:PropertyValue * 
        commandSource:IInputElement -> unit 
override ShowDialog : 
        propertyValue:PropertyValue * 
        commandSource:IInputElement -> unit 
public function ShowDialog(
    propertyValue : PropertyValue, 
    commandSource : IInputElement
)

参数

备注

重写此方法可以实现任何自定义对话框逻辑,例如调用现有系统对话框。

因为 PropertyValueEditorCommands 由宿主处理并且因为自定义对话框不是可视化树的一部分,所以 commandSource 将公开属于宿主的可视化树一部分的 IInputElement。 它可以用于执行属性编辑命令,以便这些命令得到正确处理。

.NET Framework 安全性

请参见

参考

DialogPropertyValueEditor 类

Microsoft.Windows.Design.PropertyEditing 命名空间

PropertyEntry

PropertyValue

PropertyValueEditorCommands

IInputElement

其他资源

属性编辑体系结构

WPF 设计器扩展性