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。
相依性屬性資訊
識別項欄位 |
|
中繼資料屬性設為 true |
None |
備註
如果沒有明確地設定這個屬性,則會將目前的控制項當做命令來源傳遞。
![]() |
---|
如果已叫用對話方塊編輯器,但該編輯器未指定對話方塊 DataTemplate 時,則會在 DialogPropertyValueEditor 執行個體上呼叫 DialogPropertyValueEditor.ShowDialog 方法。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.PropertyEditing 命名空間