The members of Xamarin.Forms.Element are listed below.
See Also: Inherited members from Xamarin.Forms.BindableObject
Protected Constructors
| | Protected constructor used to initialize a the element. |
Public Fields
Public Properties
| ClassId | string. Gets or sets a value used to identify a collection of semantically similar elements. |
| [read-only] | Id | Guid. Gets a value that can be used to uniquely identify an element through the run of an application. |
| Parent | Element. Gets or sets the parent element of the element. |
| [read-only] | ParentView | VisualElement. Gets the element which is the closest ancestor of this element that is a Xamarin.Forms.VisualElement. |
| StyleId | string. Gets or sets a user defined value to uniquely identify the element. |
Public Methods
Protected Methods
override | OnBindingContextChanged()Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event. |
| OnChildAdded(Element)Invoked whenever the Element.ChildAdded event needs to be emitted. Implement this method to add class handling for this event. |
| OnChildRemoved(Element)Invoked whenever the Element.ChildRemoved event needs to be emitted. Implement this method to add class handling for this event. |
| 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. |
Public Events
| ChildAdded | Occurs whenever a child element is added to the element. |
| ChildRemoved | Occurs whenever a child element is removed from the element. |
| DescendantAdded | Occurs whenever a child element is added to the elements subtree. |
| DescendantRemoved | Occurs whenever a child element is removed from the elements subtree. |
Explicitly Implemented Interface Members