DialogPropertyValueEditor.ShowDialog Method

Called when the DialogEditorTemplate is nulla null reference (Nothing in Visual Basic) and a dialog box has been invoked by the user.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
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
)

Parameters

Remarks

Overriding this method allows you to implement any custom dialog box logic, such invoking existing system dialog boxes.

Because the PropertyValueEditorCommands are handled by the host, and because custom dialog boxes are not part of that visual tree, commandSource exposes an IInputElement that is part of the host's visual tree. This may be used to execute property editing commands so that they are handled correctly.

.NET Framework Security

See Also

Reference

DialogPropertyValueEditor Class

Microsoft.Windows.Design.PropertyEditing Namespace

PropertyEntry

PropertyValue

PropertyValueEditorCommands

IInputElement

Other Resources

Property Editing Architecture

WPF Designer Extensibility