PropertyValueEditor 類別

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

繼承階層架構

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

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

語法

'宣告
Public Class PropertyValueEditor
public class PropertyValueEditor
public ref class PropertyValueEditor
type PropertyValueEditor =  class end
public class PropertyValueEditor

PropertyValueEditor 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 PropertyValueEditor() 初始化 PropertyValueEditor 類別的新執行個體。
公用方法 PropertyValueEditor(DataTemplate) 初始化 PropertyValueEditor 類別的新執行個體。

回頁首

屬性

  名稱 說明
公用屬性 InlineEditorTemplate 取得或設定用於內嵌編輯器的 DataTemplate

回頁首

方法

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

回頁首

備註

這個類別可以保存內嵌編輯器的單一 DataTemplate。 這通常是用來為 [屬性] 視窗中的屬性提供不同或自訂編輯器。 內嵌編輯器會出現在 [屬性] 視窗內。 若要提供螢幕區域較大且不一定都看得見的自訂編輯器,請參閱 ExtendedPropertyValueEditor

InlineEditorTemplate 屬性會傳回此編輯器之視覺化介面的 XAML 樣板。 這通常是在專案其他地方的 ResourceDictionary 中提供的。

範例

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

執行緒安全

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

請參閱

參考

Microsoft.Windows.Design.PropertyEditing 命名空間

其他資源

屬性編輯架構

WPF 設計工具擴充性