Class BindableProperty

Definition

Namespace:
Tizen.NUI.Binding
Assembly:
Tizen.NUI.dll

A BindableProperty is a backing store for properties allowing bindings on BindableObject.

C#
Copy
public sealed class BindableProperty : object
Inheritance
BindableProperty

Properties

View Source

DeclaringType

Gets the type declaring the BindableProperty.

Declaration
C#
Copy
public Type DeclaringType { get; }
Property Value
Type Description
Type
View Source

DefaultBindingMode

Gets the default BindingMode.

Declaration
C#
Copy
public BindingMode DefaultBindingMode { get; }
Property Value
Type Description
BindingMode
View Source

DefaultValue

Gets the default value for the BindableProperty.

Declaration
C#
Copy
public object DefaultValue { get; }
Property Value
Type Description
Object
View Source

IsReadOnly

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

Declaration
C#
Copy
public bool IsReadOnly { get; }
Property Value
Type Description
Boolean
View Source

PropertyName

Gets the property name.

Declaration
C#
Copy
public string PropertyName { get; }
Property Value
Type Description
String
View Source

ReturnType

Gets the type of the BindableProperty.

Declaration
C#
Copy
public Type ReturnType { get; }
Property Value
Type Description
Type

Methods

View Source

Create(String, Type, Type, Object, BindingMode, BindableProperty.ValidateValueDelegate, BindableProperty.BindingPropertyChangedDelegate, BindableProperty.BindingPropertyChangingDelegate, BindableProperty.CoerceValueDelegate, BindableProperty.CreateDefaultValueDelegate)

Creates a new instance of the BindableProperty class.

Declaration
C#
Copy
public static BindableProperty Create(string propertyName, Type returnType, Type declaringType, object defaultValue = null, BindingMode defaultBindingMode = BindingMode.OneWay, BindableProperty.ValidateValueDelegate validateValue = null, BindableProperty.BindingPropertyChangedDelegate propertyChanged = null, BindableProperty.BindingPropertyChangingDelegate propertyChanging = null, BindableProperty.CoerceValueDelegate coerceValue = null, BindableProperty.CreateDefaultValueDelegate defaultValueCreator = null)
Parameters
Type Name Description
String propertyName

The name of the BindableProperty.

Type returnType

The type of the property.

Type declaringType

The type of the declaring object.

Object defaultValue

The default value for the property.

BindingMode defaultBindingMode

The BindingMode to use on SetBinding() if no BindingMode is given. This parameter is optional. Default is BindingMode.OneWay.

BindableProperty.ValidateValueDelegate validateValue

A delegate to be run when a value is set. This parameter is optional. Default is null.

BindableProperty.BindingPropertyChangedDelegate propertyChanged

A delegate to be run when the value has changed. This parameter is optional. Default is null.

BindableProperty.BindingPropertyChangingDelegate propertyChanging

A delegate to be run when the value will change. This parameter is optional. Default is null.

BindableProperty.CoerceValueDelegate coerceValue

A delegate used to coerce the range of a value. This parameter is optional. Default is null.

BindableProperty.CreateDefaultValueDelegate defaultValueCreator

A Func used to initialize default value for reference types.

Returns
Type Description
BindableProperty

A newly created BindableProperty.

View Source

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.

Declaration
C#
Copy
public static BindableProperty CreateAttached(string propertyName, Type returnType, Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.OneWay, BindableProperty.ValidateValueDelegate validateValue = null, BindableProperty.BindingPropertyChangedDelegate propertyChanged = null, BindableProperty.BindingPropertyChangingDelegate propertyChanging = null, BindableProperty.CoerceValueDelegate coerceValue = null, BindableProperty.CreateDefaultValueDelegate defaultValueCreator = null)
Parameters
Type Name Description
String propertyName

The name of the BindableProperty.

Type returnType

The type of the property.

Type declaringType

The type of the declaring object.

Object defaultValue

The default value for the property.

BindingMode defaultBindingMode

The BindingMode to use on SetBinding() if no BindingMode is given. This parameter is optional. Default is BindingMode.OneWay.

BindableProperty.ValidateValueDelegate validateValue

A delegate to be run when a value is set. This parameter is optional. Default is null.

BindableProperty.BindingPropertyChangedDelegate propertyChanged

A delegate to be run when the value has changed. This parameter is optional. Default is null.

BindableProperty.BindingPropertyChangingDelegate propertyChanging

A delegate to be run when the value will change. This parameter is optional. Default is null.

BindableProperty.CoerceValueDelegate coerceValue

A delegate used to coerce the range of a value. This parameter is optional. Default is null.

BindableProperty.CreateDefaultValueDelegate defaultValueCreator

A Func used to initialize default value for reference types.

Returns
Type Description
BindableProperty

A newly created BindableProperty.

View Source

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.

Declaration
C#
Copy
public static BindablePropertyKey CreateAttachedReadOnly(string propertyName, Type returnType, Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.OneWayToSource, BindableProperty.ValidateValueDelegate validateValue = null, BindableProperty.BindingPropertyChangedDelegate propertyChanged = null, BindableProperty.BindingPropertyChangingDelegate propertyChanging = null, BindableProperty.CoerceValueDelegate coerceValue = null, BindableProperty.CreateDefaultValueDelegate defaultValueCreator = null)
Parameters
Type Name Description
String propertyName

The name of the BindableProperty.

Type returnType

The type of the property.

Type declaringType

The type of the declaring object.

Object defaultValue

The default value for the property.

BindingMode defaultBindingMode

The BindingMode to use on SetBinding() if no BindingMode is given. This parameter is optional. Default is BindingMode.OneWay.

BindableProperty.ValidateValueDelegate validateValue

A delegate to be run when a value is set. This parameter is optional. Default is null.

BindableProperty.BindingPropertyChangedDelegate propertyChanged

A delegate to be run when the value has changed. This parameter is optional. Default is null.

BindableProperty.BindingPropertyChangingDelegate propertyChanging

A delegate to be run when the value will change. This parameter is optional. Default is null.

BindableProperty.CoerceValueDelegate coerceValue

A delegate used to coerce the range of a value. This parameter is optional. Default is null.

BindableProperty.CreateDefaultValueDelegate defaultValueCreator

A Func used to initialize default value for reference types.

Returns
Type Description
BindablePropertyKey

A newly created attached read-only BindablePropertyKey.

View Source

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

Creates a new instance of the BindablePropertyKey class.

Declaration
C#
Copy
public static BindablePropertyKey CreateReadOnly(string propertyName, Type returnType, Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.OneWayToSource, BindableProperty.ValidateValueDelegate validateValue = null, BindableProperty.BindingPropertyChangedDelegate propertyChanged = null, BindableProperty.BindingPropertyChangingDelegate propertyChanging = null, BindableProperty.CoerceValueDelegate coerceValue = null, BindableProperty.CreateDefaultValueDelegate defaultValueCreator = null)
Parameters
Type Name Description
String propertyName

The name of the BindableProperty.

Type returnType

The type of the property.

Type declaringType

The type of the declaring object.

Object defaultValue

The default value for the property.

BindingMode defaultBindingMode

The BindingMode to use on SetBinding() if no BindingMode is given. This parameter is optional. Default is BindingMode.OneWay.

BindableProperty.ValidateValueDelegate validateValue

A delegate to be run when a value is set. This parameter is optional. Default is null.

BindableProperty.BindingPropertyChangedDelegate propertyChanged

A delegate to be run when the value has changed. This parameter is optional. Default is null.

BindableProperty.BindingPropertyChangingDelegate propertyChanging

A delegate to be run when the value will change. This parameter is optional. Default is null.

BindableProperty.CoerceValueDelegate coerceValue

A delegate used to coerce the range of a value. This parameter is optional. Default is null.

BindableProperty.CreateDefaultValueDelegate defaultValueCreator

A Func used to initialize default value for reference types.

Returns
Type Description
BindablePropertyKey

A newly created BindablePropertyKey.

Extension Methods