Share via


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 (in Microsoft.Windows.Design.dll)

Syntax

'Declaration
Public Overridable Sub ShowDialog ( _
    propertyValue As PropertyValue, _
    commandSource As IInputElement _
)
'Usage
Dim instance As DialogPropertyValueEditor 
Dim propertyValue As PropertyValue 
Dim commandSource As IInputElement

instance.ShowDialog(propertyValue, commandSource)
public virtual void ShowDialog(
    PropertyValue propertyValue,
    IInputElement commandSource
)
public:
virtual void ShowDialog(
    PropertyValue^ propertyValue, 
    IInputElement^ commandSource
)
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

DialogPropertyValueEditor Members

Microsoft.Windows.Design.PropertyEditing Namespace

PropertyEntry

PropertyValue

PropertyValueEditorCommands

IInputElement

Other Resources

Property Editing Architecture

WPF Designer Extensibility