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

Объект sentinel, используемый для указания того, что значение BindableProperty не задано.

Свойства

Имя Описание
DeclaringType

Возвращает тип, объявляющий BindableProperty

DefaultBindingMode

Возвращает объект BindingMode по умолчанию.

DefaultValue

Возвращает значение по умолчанию для BindableProperty.

IsReadOnly

Возвращает значение, показывающее, создается ли 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.

Применяется к

См. также раздел