Class BindableObject

Definition

Namespace:
Tizen.NUI.Binding
Assembly:
Tizen.NUI.dll
API Level:
9

Provides a mechanism by which application developers can propagate changes that are made to data in one object to another.

C#
Copy
public abstract class BindableObject : INotifyPropertyChanged, IDynamicResourceHandler
Inheritance
BindableObject
Derived
Implements

Fields

View Source

BindingContextProperty

Implements the bound property whose interface is provided by the BindingContext property.

Declaration
C#
Copy
public static readonly BindableProperty BindingContextProperty
Field Value
Type Description
BindableProperty

Properties

View Source

BindingContext

Gets or sets object that contains the properties that will be targeted by the bound properties that belong to this BindableObject.

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

ChangedPropertiesSetExcludingStyle

Declaration
C#
Copy
protected HashSet<BindableProperty> ChangedPropertiesSetExcludingStyle { get; }
Property Value
Type Description
HashSet<BindableProperty>
View Source

IsBound

Check if object is bound or not.

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

IsCreateByXaml

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

LineNumber

Declaration
C#
Copy
public int LineNumber { get; set; }
Property Value
Type Description
Int32
View Source

LinePosition

Declaration
C#
Copy
public int LinePosition { get; set; }
Property Value
Type Description
Int32

Methods

View Source

ApplyBindings()

Apply the bindings to BindingContext.

Declaration
C#
Copy
protected void ApplyBindings()
View Source

ClearBinding()

Unapplies all previously set bindings.

Declaration
C#
Copy
public void ClearBinding()
View Source

CopyBindingRelationShip(BindableObject)

Copy all binding from other object.

Declaration
C#
Copy
public void CopyBindingRelationShip(BindableObject other)
Parameters
Type Name Description
BindableObject other
View Source

CopyFrom(BindableObject)

Copy properties of other ViewStyle to this.

Declaration
C#
Copy
public virtual void CopyFrom(BindableObject other)
Parameters
Type Name Description
BindableObject other

The other BindableProperty merge to this.

View Source

EnforceNotifyBindedInstance(BindableProperty)

Declaration
C#
Copy
public void EnforceNotifyBindedInstance(BindableProperty property)
Parameters
Type Name Description
BindableProperty property
View Source

GetValue(BindableProperty)

Returns the value that is contained the BindableProperty.

Declaration
C#
Copy
public object GetValue(BindableProperty property)
Parameters
Type Name Description
BindableProperty property

The BindableProperty for which to get the value.

Returns
Type Description
Object

The value that is contained the BindableProperty

View Source

OnBindingContextChanged()

Override this method to execute an action when the BindingContext changes.

Declaration
C#
Copy
protected virtual void OnBindingContextChanged()
View Source

OnPropertyChanged(String)

Call this method from a child class to notify that a change happened on a property.

Declaration
C#
Copy
protected virtual void OnPropertyChanged(string propertyName = null)
Parameters
Type Name Description
String propertyName

The name of the property that changed.

View Source

OnPropertyChangedWithData(BindableProperty)

Method that is called when a bound property is changed.

Declaration
C#
Copy
protected virtual void OnPropertyChangedWithData(BindableProperty prop)
Parameters
Type Name Description
BindableProperty prop
View Source

OnPropertyChanging(String)

Call this method from a child class to notify that a change is going to happen on a property.

Declaration
C#
Copy
protected virtual void OnPropertyChanging(string propertyName = null)
Parameters
Type Name Description
String propertyName

The name of the property that is changing.

View Source

RegisterPropertyGroup(BindableProperty, HashSet<BindableProperty>)

Register the properties which can effect each other in Binding to same group.

Declaration
C#
Copy
public static void RegisterPropertyGroup(BindableProperty property, HashSet<BindableProperty> group)
Parameters
Type Name Description
BindableProperty property
HashSet<BindableProperty> group
View Source

RemoveBinding(BindableProperty)

Removes a previously set binding.

Declaration
C#
Copy
public void RemoveBinding(BindableProperty property)
Parameters
Type Name Description
BindableProperty property

The BindableProperty from which to remove bindings.

View Source

SetBinding(BindableProperty, BindingBase)

Assigns a binding to a property.

Declaration
C#
Copy
public void SetBinding(BindableProperty targetProperty, BindingBase binding)
Parameters
Type Name Description
BindableProperty targetProperty

The BindableProperty on which to set a binding.

BindingBase binding

The binding to set.

View Source

SetInheritedBindingContext(BindableObject, Object)

Set the inherited context to a neated element.

Declaration
C#
Copy
public static void SetInheritedBindingContext(BindableObject bindable, object value)
Parameters
Type Name Description
BindableObject bindable

The object on which to set the inherited binding context.

Object value

The inherited context to set.

View Source

SetValue(BindableProperty, Object)

Sets the value of the specified property.

Declaration
C#
Copy
public void SetValue(BindableProperty property, object value)
Parameters
Type Name Description
BindableProperty property

The BindableProperty on which to assign a value.

Object value

The value to set.

View Source

SetValue(BindablePropertyKey, Object)

Sets the value of the propertyKey.

Declaration
C#
Copy
public void SetValue(BindablePropertyKey propertyKey, object value)
Parameters
Type Name Description
BindablePropertyKey propertyKey

The BindablePropertyKey on which to assign a value.

Object value

The value to set.

View Source

UnapplyBindings()

Unapplies all previously set bindings.

Declaration
C#
Copy
protected void UnapplyBindings()

Events

View Source

BindingContextChanged

Raised whenever the BindingContext property changes.

Declaration
C#
Copy
public event EventHandler BindingContextChanged
Event Type
Type Description
EventHandler
View Source

PropertyChanged

Raised when a property has changed.

Declaration
C#
Copy
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler
API Level: 9
View Source

PropertyChanging

Raised when a property is about to change.

Declaration
C#
Copy
public event PropertyChangingEventHandler PropertyChanging
Event Type
Type Description
PropertyChangingEventHandler

Explicit Interface Implementations

View Source

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

Declaration
C#
Copy
void IDynamicResourceHandler.SetDynamicResource(BindableProperty property, string key)
Parameters
Type Name Description
BindableProperty property
String key

Implements

Extension Methods