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
- propertyValue
Type: Microsoft.Windows.Design.PropertyEditing.PropertyValue
The PropertyValue for the property being edited
- commandSource
Type: System.Windows.IInputElement
The 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
Microsoft.Windows.Design.PropertyEditing Namespace