AttachedProperty 類別

定義

用來將其他資訊關聯或附加至物件執行個體。

public ref class AttachedProperty abstract
public abstract class AttachedProperty
type AttachedProperty = class
Public MustInherit Class AttachedProperty
繼承
AttachedProperty
衍生

備註

這是 Windows 工作流程設計工具用來追蹤編輯會話期間有趣的資料片段,否則會 (大部分) 在編輯會話結束時捨棄。 AttachedProperty 在 中的 View 專案可以系結至值並回應變更時很有用。 例如,這是顯示所選項目範本的方式 (它會解除附加屬性的索引鍵以供選取)。

建構函式

AttachedProperty()

初始化 AttachedProperty 類別的新執行個體。

屬性

IsBrowsable

取得或設定指出 AttachedProperty 是否可瀏覽的布林值。

IsReadOnly

取得值,這個值會判斷附加屬性是否為唯讀。

Name

取得或設定屬性的名稱。

OwnerType

取得或設定擁有者型別。

Type

取得型別。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetValue(ModelItem)

擷取指定模型項目的值。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
NotifyPropertyChanged(ModelItem)

建立通知,這個通知會指出指定的模型項目已變更。

ResetValue(ModelItem)

將指定的模型項目重設為其預設值。

SetValue(ModelItem, Object)

將指定的模型項目設為指定的值。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於