Class Element
Definition
- 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
- Derived
- Implements
Properties
View SourceAutomationId
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 |
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 |
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 |
LogicalChildren
For internal use.
Declaration
public ReadOnlyCollection<Element> LogicalChildren { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<><Element> |
Parent
Gets or sets the parent element of the element.
Declaration
public Element Parent { get; set; }
Property Value
Type | Description |
---|---|
Element |
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 |
RealParent
For internal use.
Declaration
public Element RealParent { get; }
Property Value
Type | Description |
---|---|
Element |
StyleId
Gets or sets a user defined value to uniquely identify the element.
Declaration
public string StyleId { get; set; }
Property Value
Type | Description |
---|---|
string |
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 SourceDescendants()
For internal use.
Declaration
public IEnumerable<Element> Descendants()
Returns
Type | Description |
---|---|
IEnumerable<><Element> | the elements |
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
View SourceOnChildAdded(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. |
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. |
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()
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
Explicit Interface Implementations
View SourceINameScope.FindByName(string)
Declaration
object INameScope.FindByName(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Returns
Type | Description |
---|---|
object |
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 |
INameScope.RegisterName(string, object)
Declaration
void INameScope.RegisterName(string name, object scopedElement)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
object | scopedElement |
INameScope.UnregisterName(string)
Declaration
void INameScope.UnregisterName(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |