DialogPropertyValueEditor.ShowDialog(PropertyValue, IInputElement) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 為 空 DialogEditorTemplate 且使用者已呼叫對話框時呼叫。
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 會暴露 a IInputElement 是主機視覺樹的一部分,因此可以用來執行屬性編輯指令,確保它們能被正確處理。 覆寫此方法後,你可以實作任何自訂的對話邏輯,例如呼叫現有系統對話框。