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.

C#
Copy
public abstract class Element : BindableObject, IDynamicResourceHandler, IElement, INameScope, IElementController
Inheritance
Derived
Implements

Properties

View Source

AutomationId

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

Declaration
C#
Copy
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
C#
Copy
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
C#
Copy
public Guid Id { get; }
Property Value
Type Description
Guid
View Source

LogicalChildren

For internal use.

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

Parent

Gets or sets the parent element of the element.

Declaration
C#
Copy
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
C#
Copy
public BaseHandle ParentView { get; }
Property Value
Type Description
BaseHandle
View Source

RealParent

For internal use.

Declaration
C#
Copy
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
C#
Copy
public string StyleId { get; set; }
Property Value
Type Description
String
View Source

XNames

Gets the x:Name dictionary of the element.

Declaration
C#
Copy
public Dictionary<string, object> XNames { get; }
Property Value
Type Description
Dictionary<String, Object>

Methods

View Source

Descendants()

For internal use.

Declaration
C#
Copy
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
C#
Copy
protected override void OnBindingContextChanged()
Overrides
View Source

OnChildAdded(Element)

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

Declaration
C#
Copy
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
C#
Copy
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
C#
Copy
protected virtual void OnParentSet()
View Source

OnPropertyChanged(String)

Method that is called when a bound property is changed.

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

The name of the bound property that changed.

Overrides

Explicit Interface Implementations

View Source

INameScope.FindByName(String)

Declaration
C#
Copy
object INameScope.FindByName(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Object
View Source

INameScope.RegisterName(String, Object)

Declaration
C#
Copy
void INameScope.RegisterName(string name, object scopedElement)
Parameters
Type Name Description
String name
Object scopedElement
View Source

INameScope.RegisterName(String, Object, IXmlLineInfo)

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

INameScope.UnregisterName(String)

Declaration
C#
Copy
void INameScope.UnregisterName(string name)
Parameters
Type Name Description
String name

Implements

Extension Methods