共用方式為


PropertyContainer.DialogCommandSource 屬性

取得或設定 IInputElement,以當做命令來源傳遞至 DialogPropertyValueEditor.ShowDialog 方法。

命名空間:  Microsoft.Windows.Design.PropertyEditing
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Property DialogCommandSource As IInputElement
    Get
    Set
public IInputElement DialogCommandSource { get; set; }
public:
property IInputElement^ DialogCommandSource {
    IInputElement^ get ();
    void set (IInputElement^ value);
}
member DialogCommandSource : IInputElement with get, set
function get DialogCommandSource () : IInputElement
function set DialogCommandSource (value : IInputElement)

屬性值

型別:System.Windows.IInputElement
要當做命令來源傳遞至 DialogPropertyValueEditor.ShowDialog 方法的 IInputElement

相依性屬性資訊

識別項欄位

DialogCommandSourceProperty

中繼資料屬性設為 true

None

備註

如果沒有明確地設定這個屬性,則會將目前的控制項當做命令來源傳遞。

注意事項注意事項

如果已叫用對話方塊編輯器,但該編輯器未指定對話方塊 DataTemplate 時,則會在 DialogPropertyValueEditor 執行個體上呼叫 DialogPropertyValueEditor.ShowDialog 方法。

.NET Framework 安全性

請參閱

參考

PropertyContainer 類別

Microsoft.Windows.Design.PropertyEditing 命名空間

其他資源

WPF 設計工具擴充性

屬性編輯架構

相依性屬性概觀