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