Redigera

Dela via


DialogPropertyValueEditor.ShowDialog(PropertyValue, IInputElement) Method

Definition

Called when the DialogEditorTemplate is null and a dialog has been invoked by the user.

public:
 virtual void ShowDialog(System::Activities::Presentation::PropertyEditing::PropertyValue ^ propertyValue, System::Windows::IInputElement ^ commandSource);
public virtual void ShowDialog (System.Activities.Presentation.PropertyEditing.PropertyValue propertyValue, System.Windows.IInputElement commandSource);
abstract member ShowDialog : System.Activities.Presentation.PropertyEditing.PropertyValue * System.Windows.IInputElement -> unit
override this.ShowDialog : System.Activities.Presentation.PropertyEditing.PropertyValue * System.Windows.IInputElement -> unit
Public Overridable Sub ShowDialog (propertyValue As PropertyValue, commandSource As IInputElement)

Parameters

propertyValue
PropertyValue

The PropertyValue for the property being edited.

commandSource
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.

Applies to