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
propertyValue
Type: Microsoft.Windows.Design.PropertyEditing.PropertyValueThe PropertyValue for the property being edited
commandSource
Type: System.Windows.IInputElementThe IInputElement that can be used as a source for execution of PropertyValueEditorCommands.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DialogPropertyValueEditor Class
DialogPropertyValueEditor Members
Microsoft.Windows.Design.PropertyEditing Namespace