Class Element

    Definition

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

    Provides the base class for all Tizen.NUI.Binding hierarchal elements. This class contains all the methods and properties required to represent an element in the Tizen.NUI.Binding hierarchy.

    public abstract class Element : BindableObject, IDynamicResourceHandler, INameScope
    Inheritance
    object
    BindableObject
    Element
    Derived
    BaseHandle
    BaseHandle
    Implements
    IDynamicResourceHandler
    INameScope

    Properties

    View Source

    AutomationId

    Gets or sets a value that allows the automation framework to find and interact with this element.

    Declaration
    public string AutomationId { get; set; }
    Property Value
    Type Description
    string
    View Source

    ClassId

    Gets or sets a value used to identify a collection of semantically similar elements.

    Declaration
    public string ClassId { get; set; }
    Property Value
    Type Description
    string
    View Source

    Id

    Gets a value that can be used to uniquely identify an element through the run of an application.

    Declaration
    public Guid Id { get; }
    Property Value
    Type Description
    Guid
    View Source

    LogicalChildren

    For internal use.

    Declaration
    public ReadOnlyCollection<Element> LogicalChildren { get; }
    Property Value
    Type Description
    ReadOnlyCollection<><Element>
    View Source

    Parent

    Gets or sets the parent element of the element.

    Declaration
    public Element Parent { get; set; }
    Property Value
    Type Description
    Element
    View Source

    ParentView

    Gets the element which is the closest ancestor of this element that is a BaseHandle.

    Declaration
    public BaseHandle ParentView { get; }
    Property Value
    Type Description
    BaseHandle
    View Source

    RealParent

    For internal use.

    Declaration
    public Element RealParent { get; }
    Property Value
    Type Description
    Element
    View Source

    StyleId

    Gets or sets a user defined value to uniquely identify the element.

    Declaration
    public string StyleId { get; set; }
    Property Value
    Type Description
    string
    View Source

    XNames

    Gets the x:Name dictionary of the element.

    Declaration
    public Dictionary<string, object> XNames { get; }
    Property Value
    Type Description
    Dictionary<, ><string, object>

    Methods

    View Source

    Descendants()

    For internal use.

    Declaration
    public IEnumerable<Element> Descendants()
    Returns
    Type Description
    IEnumerable<><Element>

    the elements

    View Source

    OnBindingContextChanged()

    Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event.

    Declaration
    protected override void OnBindingContextChanged()
    Overrides
    BindableObject.OnBindingContextChanged()
    View Source

    OnChildAdded(Element)

    Invoked whenever the ChildAdded event needs to be emitted.Implement this method to add class handling for this event.

    Declaration
    protected virtual void OnChildAdded(Element child)
    Parameters
    Type Name Description
    Element child

    The element that was added.

    View Source

    OnChildRemoved(Element)

    Invoked whenever the ChildRemoved event needs to be emitted.Implement this method to add class handling for this event.

    Declaration
    protected virtual void OnChildRemoved(Element child)
    Parameters
    Type Name Description
    Element child

    The element that was removed.

    View Source

    OnParentSet()

    Invoked whenever the Parent of an element is set.Implement this method in order to add behavior when the element is added to a parent.

    Declaration
    protected virtual void OnParentSet()
    View Source

    OnPropertyChanged(string)

    Method that is called when a bound property is changed.

    Declaration
    protected override void OnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    string propertyName

    The name of the bound property that changed.

    Overrides
    BindableObject.OnPropertyChanged(string)

    Explicit Interface Implementations

    View Source

    INameScope.FindByName(string)

    Declaration
    object INameScope.FindByName(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    object
    View Source

    INameScope.RegisterName(string, object, IXmlLineInfo)

    Declaration
    void INameScope.RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo)
    Parameters
    Type Name Description
    string name
    object scopedElement
    IXmlLineInfo xmlLineInfo
    View Source

    INameScope.RegisterName(string, object)

    Declaration
    void INameScope.RegisterName(string name, object scopedElement)
    Parameters
    Type Name Description
    string name
    object scopedElement
    View Source

    INameScope.UnregisterName(string)

    Declaration
    void INameScope.UnregisterName(string name)
    Parameters
    Type Name Description
    string name

    Implements

    IDynamicResourceHandler
    INameScope

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, 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