Xamarin.Forms by Microsoft

<PackageReference Include="Xamarin.Forms" Version="4.6.0.1141" />

.NET API 1,344,112 bytes

 Element

Provides the base class for all Xamarin.Forms hierarchal elements. This class contains all the methods and properties required to represent an element in the Xamarin.Forms hierarchy.
public static readonly BindableProperty AutomationIdProperty

The backing store for the AutomationId field.

public static readonly BindableProperty ClassIdProperty

Identifies the ClassId bindable property.

public static readonly BindableProperty MenuProperty

Backing store for the attached menu property.

public string AutomationId { get; set; }

Gets or sets a value that allows the automation framework to find and interact with this element.

public string ClassId { get; set; }

Gets or sets a value used to identify a collection of semantically similar elements.

For internal use by the Xamarin.Forms platform.

public IList<Effect> Effects { get; }

A list of the effects that are applied to this item.

public Guid Id { get; }

Gets a value that can be used to uniquely identify an element through the run of an application.

For internal use by the Xamarin.Forms platform.

public Element Parent { get; set; }

Gets or sets the parent element of the element.

public VisualElement ParentView { get; }

Gets the element which is the closest ancestor of this element that is a VisualElement.

public IPlatform Platform { get; set; }

public Element RealParent { get; }

For internal use by the Xamarin.Forms platform.

public string StyleId { get; set; }

Gets or sets a user defined value to uniquely identify the element.

Occurs whenever a child element is added to the element.

Occurs whenever a child element is removed from the element.

Occurs whenever a child element is added to the elements subtree.

Occurs whenever a child element is removed from the elements subtree.

protected Element()

public static Menu GetMenu(BindableObject bindable)

Gets the Menu object for bindable.

public static void SetMenu(BindableObject bindable, Menu menu)

Sets the menu for bindable.

For internal use by the Xamarin.Forms platform.

public bool EffectIsAttached(string name)

For internal use by the Xamarin.Forms platform.

public object FindByName(string name)

Returns the element that has the specified name.

protected virtual void OnChildAdded(Element child)

Invoked whenever the ChildAdded event needs to be emitted. Implement this method to add class handling for this event.

protected virtual void OnChildRemoved(Element child)

Invoked whenever the ChildRemoved event needs to be emitted. Implement this method to add class handling for this event.

protected virtual void 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.

Removes a previously set dynamic resource

public void SetDynamicResource(BindableProperty property, string key)

Sets the BindableProperty property of this element to be updated via the DynamicResource with the provided key.

public void SetValueFromRenderer(BindableProperty property, object value)

For internal use by the Xamarin.Forms platform.

public void SetValueFromRenderer(BindablePropertyKey property, object value)

For internal use by the Xamarin.Forms platform.