共用方式為


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 安全性

請參閱

參考

DialogPropertyValueEditor 類別

Microsoft.Windows.Design.PropertyEditing 命名空間

PropertyEntry

PropertyValue

PropertyValueEditorCommands

IInputElement

其他資源

屬性編輯架構

WPF 設計工具擴充性