Show / Hide Table of Contents

    Class ElementExtensions

    Visual element extensions.

    Inheritance
    Object
    ElementExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Forms9Patch
    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 Description
    T
    Type Parameters
    Name Description
    T

    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 Description
    T
    Type Parameters
    Name Description
    T

    GetRenderer(VisualElement)

    Returns platform renderer for VisualElement (or null)

    Declaration
    public static object GetRenderer(this VisualElement element)
    Parameters
    Type Name Description
    VisualElement element
    Returns
    Type Description
    Object

    HasRenderer(VisualElement)

    Tests if VisualElement has a Xamarin.Forms platform renderer attached

    Declaration
    public static bool HasRenderer(this VisualElement element)
    Parameters
    Type Name Description
    VisualElement element
    Returns
    Type Description
    Boolean

    IsInNativeLayout(VisualElement)

    Declaration
    public static bool IsInNativeLayout(this VisualElement e)
    Parameters
    Type Name Description
    VisualElement e
    Returns
    Type Description
    Boolean

    SetIsInNativeLayout(VisualElement, Boolean)

    Declaration
    public static void SetIsInNativeLayout(this VisualElement e, bool value)
    Parameters
    Type Name Description
    VisualElement e
    Boolean value
    Back to top Copyright © 2018 42nd Parallel