Class BindableProperty
Definition
- Namespace:
- Tizen.NUI.Binding
- Assembly:
- Tizen.NUI.dll
A BindableProperty is a backing store for properties allowing bindings on BindableObject.
C#Copypublic sealed class BindableProperty : object
- Inheritance
-
BindableProperty
Properties
Declaration
C#Copypublic Type DeclaringType { get; }
Property Value
Type | Description |
---|---|
Type |
Declaration
C#Copypublic BindingMode DefaultBindingMode { get; }
Property Value
Type | Description |
---|---|
BindingMode |
Declaration
C#Copypublic object DefaultValue { get; }
Property Value
Type | Description |
---|---|
Object |
IsReadOnly
Gets a value indicating if the BindableProperty is created form a BindablePropertyKey.
Declaration
C#Copypublic bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
Boolean |
Declaration
C#Copypublic string PropertyName { get; }
Property Value
Type | Description |
---|---|
String |
Declaration
C#Copypublic Type ReturnType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
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#Copypublic 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. |
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#Copypublic 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. |
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#Copypublic 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. |
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#Copypublic 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. |