Condividi tramite


BindableProperty Classe

Definizione

BindableProperty è un archivio di backup per le proprietà che consentono le associazioni in 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
Ereditarietà
BindableProperty
Attributi

Campi

Nome Descrizione
UnsetValue

Oggetto sentinel utilizzato per indicare che non è stato impostato un valore BindableProperty.

Proprietà

Nome Descrizione
DeclaringType

Ottiene il tipo che dichiara BindableProperty

DefaultBindingMode

Ottiene l'oggetto BindingMode predefinito.

DefaultValue

Ottiene il valore predefinito per BindableProperty.

IsReadOnly

Ottiene un valore che indica se bindableProperty viene creato come BindablePropertyKey.

PropertyName

Ottiene il nome della proprietà.

ReturnType

Ottiene il tipo di BindableProperty.

Metodi

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

Crea una nuova istanza della classe BindableProperty.

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

Crea una nuova istanza della classe BindableProperty per una proprietà associata.

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

Crea una nuova istanza della classe BindableProperty per le proprietà di sola lettura associate.

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

Crea una nuova istanza della classe BindablePropertyKey.

Si applica a

Vedi anche