ComponentOne FlexGrid for UWP
C1.UWP Assembly / C1.Xaml Namespace / VTreeHelper Class / GetFirstParent Method
The visual whose parent is returned.
The IList list of types to search for.
The visual representing the end point of search.

In This Topic
    GetFirstParent Method
    In This Topic
    Returns a Windows.UI.Xaml.DependencyObject value that represents the first parent of the visual object which type is one of the specified tyles. Method looks up the visual tree until the desired parent element is found or parent element is equal to the specified endObject.
    Syntax
    'Declaration
     
    
    Public Shared Function GetFirstParent( _
       ByVal reference As DependencyObject, _
       ByVal types As IList(Of Type), _
       ByVal endObject As DependencyObject _
    ) As DependencyObject

    Parameters

    reference
    The visual whose parent is returned.
    types
    The IList list of types to search for.
    endObject
    The visual representing the end point of search.

    Return Value

    The parent of the visual.
    See Also