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,而且可以用正確處理命令的這種方式,用來執行屬性編輯命令。 覆寫此方法可讓您實作任何自訂的對話方塊邏輯,例如,叫用現有的系統對話方塊。

適用於