Basic Library for WPF and Silverlight | ComponentOne
C1.WPF Namespace / Extensions Class / GetAllParents Method

In This Topic
    GetAllParents Method (Extensions)
    In This Topic
    Returns all the parents in the visual tree
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function GetAllParents( _
       ByVal elem As FrameworkElement _
    ) As IEnumerable(Of FrameworkElement)
    [Extension()]
    public static IEnumerable<FrameworkElement> GetAllParents( 
       FrameworkElement elem
    )

    Parameters

    elem

    Return Value

    The list of ancestor framework elements in the visual tree hierarchy
    See Also