Freigeben über


Element.ParentView Property

Definition

Caution

ParentView is obsolete as of version 2.1.0. Please use Parent instead.

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

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("ParentView is obsolete as of version 2.1.0. Please use Parent instead.")]
public Xamarin.Forms.VisualElement ParentView { get; }
member this.ParentView : Xamarin.Forms.VisualElement

Property Value

The closest ansestor which is a VisualElement.

Attributes
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute

Remarks

Convenient way of accessing the nearest ancestor of an element which is actually represented on screen visually. If this element is a visual element, its bounds are relative to its ParentView.

Applies to