Class BindableObject

    Definition

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

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

    public abstract class BindableObject : INotifyPropertyChanged, IDynamicResourceHandler
    Inheritance
    object
    BindableObject
    Derived
    ViewStyle
    ViewStyle
    Behavior
    Behavior
    Element
    Element
    TriggerBase
    TriggerBase
    ButtonGroup
    ButtonGroup
    DefaultBorder
    DefaultBorder
    Theme
    Theme
    Implements
    IDynamicResourceHandler

    Fields

    View Source

    BindingContextProperty

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

    Declaration
    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
    public object BindingContext { get; set; }
    Property Value
    Type Description
    object
    View Source

    IsBound

    Check if object is bound or not.

    Declaration
    public bool IsBound { get; set; }
    Property Value
    Type Description
    bool
    View Source

    IsCreateByXaml

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

    LineNumber

    Declaration
    public int LineNumber { get; set; }
    Property Value
    Type Description
    int
    View Source

    LinePosition

    Declaration
    public int LinePosition { get; set; }
    Property Value
    Type Description
    int

    Methods

    View Source

    ApplyBindings()

    Apply the bindings to BindingContext.

    Declaration
    protected void ApplyBindings()
    View Source

    ClearBinding()

    Unapplies all previously set bindings.

    Declaration
    public void ClearBinding()
    View Source

    CopyBindingRelationShip(BindableObject)

    Copy all binding from other object.

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

    CopyFrom(BindableObject)

    Copy properties of other ViewStyle to this.

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

    The other BindableProperty merge to this.

    View Source

    EnforceNotifyBindedInstance(BindableProperty)

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

    GetValue(BindableProperty)

    Returns the value that is contained the BindableProperty.

    Declaration
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    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
    protected void UnapplyBindings()

    Events

    View Source

    BindingContextChanged

    Raised whenever the BindingContext property changes.

    Declaration
    public event EventHandler BindingContextChanged
    Event Type
    Type Description
    EventHandler
    View Source

    PropertyChanged

    Raised when a property has changed.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler
    View Source

    PropertyChanging

    Raised when a property is about to change.

    Declaration
    public event PropertyChangingEventHandler PropertyChanging
    Event Type
    Type Description
    PropertyChangingEventHandler

    Explicit Interface Implementations

    View Source

    IDynamicResourceHandler.SetDynamicResource(BindableProperty, string)

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

    Implements

    IDynamicResourceHandler

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX