Поделиться через


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.

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

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