See Also: Element
The following diagram shows the classes derived from Element.
The diagram shows some important categories:
|VisualElement||A Element that occupies an area on the screen, has a visual appearance, and can obtain touch input.|
|Cell||Cells are elements meant to be added to ListView or TableView.|
|Page||A VisualElement that occupies most or all of the screen and contains a single child.|
|Layout||Layout have a single child of type View, while subclasses of Layout`1 have a collection of multiple children views, including other layouts.|
|Controls and specialized Views||The lower part of the diagram shows the Xamarin.Forms classes for universally-available controls, such as Buttons and TableViews.|
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199
The members of Xamarin.Forms.Element are listed below.
See Also: BindableObject
|Protected constructor used to initialize a the element.|
|AutomationId||String. Gets or sets a value that allows the automation framework to find and interact with this element.|
|ClassId||String. Gets or sets a value used to identify a collection of semantically similar elements.|
|[read-only]||Effects||IList<Effect>. A list of the effects that are applied to this item.|
|[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 VisualElement.|
|StyleId||String. Gets or sets a user defined value to uniquely identify the element.|
Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event.
Invoked whenever the Element.ChildAdded event needs to be emitted. Implement this method to add class handling for this event.
Invoked whenever the Element.ChildRemoved event needs to be emitted. Implement this method to add class handling for this event.
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.
Method that is called when a bound property is changed.
|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.|