Share via


BindableProperty 類別

定義

BindableProperty 是在 BindableObject 上允許繫結的屬性備份存放區。

public ref class BindableProperty sealed
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.BindablePropertyConverter))]
public sealed class BindableProperty
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.BindablePropertyConverter))>]
type BindableProperty = class
Public NotInheritable Class BindableProperty
繼承
BindableProperty
屬性

欄位

UnsetValue

BindableProperty 是在 BindableObject 上允許繫結的屬性備份存放區。

屬性

DeclaringType

取得宣告 BindableProperty 的類型

DefaultBindingMode

取得預設 BindingMode。

DefaultValue

取得 BindableProperty 的預設值。

IsReadOnly

取得值,該值指出 BindableProperty 是否從 BindablePropertyKey 建立。

PropertyName

取得屬性名稱。

ReturnType

取得 BindableProperty 的類型。

方法

Create(String, Type, Type, Object, BindingMode, BindableProperty+ValidateValueDelegate, BindableProperty+BindingPropertyChangedDelegate, BindableProperty+BindingPropertyChangingDelegate, BindableProperty+CoerceValueDelegate, BindableProperty+CreateDefaultValueDelegate)

建立 BindableProperty 類別的新執行個體。

CreateAttached(String, Type, Type, Object, BindingMode, BindableProperty+ValidateValueDelegate, BindableProperty+BindingPropertyChangedDelegate, BindableProperty+BindingPropertyChangingDelegate, BindableProperty+CoerceValueDelegate, BindableProperty+CreateDefaultValueDelegate)

建立附加屬性 BindableProperty 類別的新執行個體。

CreateAttachedReadOnly(String, Type, Type, Object, BindingMode, BindableProperty+ValidateValueDelegate, BindableProperty+BindingPropertyChangedDelegate, BindableProperty+BindingPropertyChangingDelegate, BindableProperty+CoerceValueDelegate, BindableProperty+CreateDefaultValueDelegate)

建立附加唯讀屬性 BindableProperty 類別的新執行個體。

CreateReadOnly(String, Type, Type, Object, BindingMode, BindableProperty+ValidateValueDelegate, BindableProperty+BindingPropertyChangedDelegate, BindableProperty+BindingPropertyChangingDelegate, BindableProperty+CoerceValueDelegate, BindableProperty+CreateDefaultValueDelegate)

建立 BindablePropertyKey 類別的新執行個體。

適用於

另請參閱