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, 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
public string AutomationId { get; set; }
Property Value
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
View Source
Id
Gets a value that can be used to uniquely identify an element through the run of an application.
Declaration
Property Value
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
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
Declaration
public Element RealParent { get; }
Property Value
View Source
StyleId
Gets or sets a user defined value to uniquely identify the element.
Declaration
public string StyleId { get; set; }
Property Value
View Source
XNames
Gets the x:Name dictionary of the element.
Declaration
public Dictionary<string, object> XNames { get; }
Property Value
Methods
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
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
Explicit Interface Implementations
Declaration
object INameScope.FindByName(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Declaration
void INameScope.RegisterName(string name, object scopedElement)
Parameters
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 |
|
Declaration
void INameScope.UnregisterName(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Implements
Extension Methods