DialogPropertyValueEditor.ShowDialog(PropertyValue, IInputElement) メソッド

定義

DialogEditorTemplate が null であり、ユーザーがダイアログを呼び出した場合に呼び出されます。

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)

パラメーター

propertyValue
PropertyValue

編集されるプロパティの PropertyValue

commandSource
IInputElement

IInputElement の実行のソースとして使用可能な PropertyValueEditorCommands

注釈

コマンドはホストによって処理されますが、カスタム ダイアログはホストのビジュアル ツリーの一部とはならないため、commandSource によってホストのビジュアル ツリーの一部である IInputElement が公開されます。これを使用して、プロパティ編集コマンドを適切に実行できます。 このメソッドをオーバーライドすると、任意のカスタム ダイアログ ロジックを実装できます。たとえば、既存のシステム ダイアログを呼び出すことができます。

適用対象