Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

BindableProperty Class

Definition

Namespace:
Microsoft.Maui.Controls
Assembly:
Microsoft.Maui.Controls.dll
Source:
BindableProperty.cs
Source:
BindableProperty.cs
Source:
BindableProperty.cs
Source:
BindableProperty.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

A BindableProperty is a backing store for properties allowing bindings on 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
Inheritance
BindableProperty
Attributes

Fields

Name Description
UnsetValue

A sentinel object used to indicate that a BindableProperty value has not been set.

Properties

Name Description
DeclaringType

Gets the type declaring the BindableProperty

DefaultBindingMode

Gets the default BindingMode.

DefaultValue

Gets the default value for the BindableProperty.

IsReadOnly

Gets a value indicating if the BindableProperty is created form a BindablePropertyKey.

PropertyName

Gets the property name.

ReturnType

Gets the type of the BindableProperty.

Methods

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

Creates a new instance of the BindableProperty class.

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

Creates a new instance of the BindableProperty class for an attached property.

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

Creates a new instance of the BindableProperty class for attached read-only properties.

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

Creates a new instance of the BindablePropertyKey class.

Applies to

See also


Feedback

Was this page helpful?