DialogPropertyValueEditor.DialogEditorTemplate 屬性
取得或設定 DataTemplate,這會由主應用程式特定對話方塊裝載,並將 DataContext 設定為 PropertyValue。
命名空間: Microsoft.Windows.Design.PropertyEditing
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Property DialogEditorTemplate As DataTemplate
Get
Set
public DataTemplate DialogEditorTemplate { get; set; }
public:
property DataTemplate^ DialogEditorTemplate {
DataTemplate^ get ();
void set (DataTemplate^ value);
}
member DialogEditorTemplate : DataTemplate with get, set
function get DialogEditorTemplate () : DataTemplate
function set DialogEditorTemplate (value : DataTemplate)
屬性值
型別:System.Windows.DataTemplate
DataTemplate 物件,這個物件是這個值編輯器的樣板。
備註
如果這個屬性傳回 nullNull 參照 (即 Visual Basic 中的 Nothing),則會改為呼叫 ShowDialog 方法。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.PropertyEditing 命名空間