ExtendedPropertyValueEditor 類別

存放屬性的任何和所有擴充編輯器邏輯的容器。

繼承階層架構

System.Object
  Microsoft.Windows.Design.PropertyEditing.PropertyValueEditor
    Microsoft.Windows.Design.PropertyEditing.ExtendedPropertyValueEditor

命名空間:  Microsoft.Windows.Design.PropertyEditing
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Class ExtendedPropertyValueEditor _
    Inherits PropertyValueEditor
public class ExtendedPropertyValueEditor : PropertyValueEditor
public ref class ExtendedPropertyValueEditor : public PropertyValueEditor
type ExtendedPropertyValueEditor =  
    class
        inherit PropertyValueEditor
    end
public class ExtendedPropertyValueEditor extends PropertyValueEditor

ExtendedPropertyValueEditor 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 ExtendedPropertyValueEditor() 初始化 ExtendedPropertyValueEditor 類別的新執行個體。
公用方法 ExtendedPropertyValueEditor(DataTemplate, DataTemplate) 使用指定的擴充和內嵌編輯器 DataTemplate 物件,初始化 ExtendedPropertyValueEditor 類別的新執行個體。

回頁首

屬性

  名稱 說明
公用屬性 ExtendedEditorTemplate 取得或設定用於擴充式快顯/固定編輯器的 DataTemplate
公用屬性 InlineEditorTemplate 取得或設定用於內嵌編輯器的 DataTemplate。 (繼承自 PropertyValueEditor)。

回頁首

方法

  名稱 說明
公用方法 Equals 判斷指定的 Object 和目前的 Object 是否相等。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

備註

ExtendedPropertyValueEditor 類別可以保留兩個 DataTemplate 物件,一個用於內嵌編輯器,另一用於擴充編輯器。 內嵌編輯器提供出現在 [屬性] 視窗界限內的自訂介面,而擴充編輯器則提供出現在新視窗中的介面。

InlineEditorTemplate 屬性會傳回內嵌編輯器視覺化介面的 XAML 樣板,而 ExtendedEditorTemplate 屬性會傳回擴充編輯器的 XAML 樣板。 這些通常是在專案其他地方的 ResourceDictionary 中提供的。

您應使用 EditModeSwitchButton 來叫用自訂 ExtendedPropertyValueEditor。如需示範,請參閱逐步解說:實作色彩編輯器

範例

下列程式碼範例會示範如何使用 ExtendedPropertyValueEditor 類別。 如需詳細資訊,請參閱逐步解說:實作色彩編輯器

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.Windows.Design.PropertyEditing 命名空間

其他資源

屬性編輯架構

WPF 設計工具擴充性