Class ElementExtensions
Visual element extensions.
Inheritance
ElementExtensions
Assembly: Forms9Patch.dll
Syntax
public static class ElementExtensions
Methods
Ancestor<T>(Element)
Finds Ancestor element of the given type
Declaration
public static T Ancestor<T>(this Element element)
where T : Element
Parameters
Type |
Name |
Description |
Element |
element |
|
Returns
Type Parameters
AncestorOfBaseType<T>(Element)
Fine an ancestor of this element of a type that is inherited from T
Declaration
public static T AncestorOfBaseType<T>(this Element element)
where T : Element
Parameters
Type |
Name |
Description |
Element |
element |
|
Returns
Type Parameters
GetRenderer(VisualElement)
Returns platform renderer for VisualElement (or null)
Declaration
public static object GetRenderer(this VisualElement element)
Parameters
Returns
HasRenderer(VisualElement)
Tests if VisualElement has a Xamarin.Forms platform renderer attached
Declaration
public static bool HasRenderer(this VisualElement element)
Parameters
Returns
IsInNativeLayout(VisualElement)
Declaration
public static bool IsInNativeLayout(this VisualElement e)
Parameters
Returns
SetIsInNativeLayout(VisualElement, Boolean)
Declaration
public static void SetIsInNativeLayout(this VisualElement e, bool value)
Parameters