Xamarin.Forms.Element Members

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

static readonly
ClassIdPropertyBindableProperty. Identifies the ClassId bindable property.

Public Properties

ClassIdstring. Gets or sets a value used to identify a collection of semantically similar elements.
[read-only]
IdGuid. Gets a value that can be used to uniquely identify an element through the run of an application.
ParentElement. Gets or sets the parent element of the element.
[read-only]
ParentViewVisualElement. Gets the element which is the closest ancestor of this element that is a Xamarin.Forms.VisualElement.
StyleIdstring. Gets or sets a user defined value to uniquely identify the element.

Public Methods

RemoveDynamicResource(BindableProperty)
Removes a previously set dynamic resource
SetDynamicResource(BindableProperty, string)
Sets the BindableProperty property of this element to be updated via the DynamicResource with the provided key.

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

ChildAddedOccurs whenever a child element is added to the element.
ChildRemovedOccurs whenever a child element is removed from the element.
DescendantAddedOccurs whenever a child element is added to the elements subtree.
DescendantRemovedOccurs whenever a child element is removed from the elements subtree.

Explicitly Implemented Interface Members

Xamarin.Forms.IElement.AddResourcesChangedListenerDocumentation for this section has not yet been entered.
Xamarin.Forms.INameScope.FindByNameFinds an object previously registered with Element.RegisterName.
Xamarin.Forms.INameScope.RegisterNameInternal use only.
Xamarin.Forms.INameScope.RegisterNameWithin an Xamarin.Forms.INameScope, creates an association between name and scopedElement.
Xamarin.Forms.IElement.RemoveResourcesChangedListenerDocumentation for this section has not yet been entered.
[read-only]
Xamarin.Forms.IElement.ResourceDictionaryIResourceDictionary.
Xamarin.Forms.IElementController.SetValueFromRendererSets a value from a renderer without breaking the binding on a bound property.
Xamarin.Forms.IElementController.SetValueFromRendererSets a value from a renderer without breaking the binding on a bound property.
Xamarin.Forms.INameScope.UnregisterNameRemoves name from an Xamarin.Forms.INameScope.
Xamarin.Forms.IElement.XamlParentWeakReference<Element>. Gets or sets a weak reference to the parent of this Xamarin.Forms.Element object.