共用方式為


DialogPropertyValueEditor.DialogEditorTemplate 屬性

更新: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 方法。

使用權限

請參閱

參考

DialogPropertyValueEditor 類別

DialogPropertyValueEditor 成員

Microsoft.Windows.Design.PropertyEditing 命名空間

PropertyEntry

PropertyValue

PropertyValueEditorCommands

IInputElement

其他資源

屬性編輯架構

WPF 設計工具擴充性