Jazyk

BindableProperty Třída

Definice

BindableProperty je záložní úložiště pro vlastnosti, které umožňují vazby na 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
Dědičnost
BindableProperty
Atributy

Pole

Name Description
UnsetValue

Objekt sentinelu sloužící k označení, že hodnota BindableProperty nebyla nastavena.

Vlastnosti

Name Description
DeclaringType

Získá typ deklarující BindableProperty

DefaultBindingMode

Získá výchozí BindingMode.

DefaultValue

Získá výchozí hodnotu BindableProperty.

IsReadOnly

Získá hodnotu označující, pokud BindableProperty je vytvořen formulář BindablePropertyKey.

PropertyName

Získá název vlastnosti.

ReturnType

Získá typ BindableProperty.

Metody

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

Vytvoří novou instanci BindableProperty třídy.

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

Vytvoří novou instanci BindableProperty třídy pro připojenou vlastnost.

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

Vytvoří novou instanci BindableProperty třídy pro připojené vlastnosti jen pro čtení.

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

Vytvoří novou instanci BindablePropertyKey třídy.

Platí pro

Viz také