DialogPropertyValueEditor.ShowDialog Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Called when the DialogEditorTemplate is null and a dialog has been invoked by the user.
Namespace: System.Activities.Design.PropertyEditing
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.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
)
abstract ShowDialog :
propertyValue:PropertyValue *
commandSource:IInputElement -> unit
override ShowDialog :
propertyValue:PropertyValue *
commandSource:IInputElement -> unit
Parameters
- propertyValue
Type: System.Activities.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
Since the commands get handled by the host and since custom dialogs are not going to be part of that visual tree, the commandSource exposes an IInputElement that is part of the host's visual tree and that, therefore, can be used to execute property editing commands in such a way that they are handled correctly. Overriding this method enables you to implement any custom dialog logic, such as invoking existing system dialogs.
.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.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4
See Also
Reference
DialogPropertyValueEditor Class