ComponentOne FlexGrid for UWP
GetParentOfType(DependencyObject,Type,Boolean) Method

C1.UWP Assembly > C1.Xaml Namespace > VTreeHelper Class > GetParentOfType Method : GetParentOfType(DependencyObject,Type,Boolean) Method
The visual whose parent is returned.
The System.Type of the parent element to search for.
Specifies whether the search should go on outside the VisualTree.
Returns a Windows.UI.Xaml.DependencyObject value that represents the parent of the visual object of the specified type. Method looks up the visual tree until the desired parent element is found or parent element is null.
Syntax
'Declaration
 
Public Overloads Shared Function GetParentOfType( _
   ByVal reference As Windows.UI.Xaml.DependencyObject, _
   ByVal type As System.Type, _
   ByVal lookOutsideVisualTree As System.Boolean _
) As Windows.UI.Xaml.DependencyObject
public static Windows.UI.Xaml.DependencyObject GetParentOfType( 
   Windows.UI.Xaml.DependencyObject reference,
   System.Type type,
   System.bool lookOutsideVisualTree
)

Parameters

reference
The visual whose parent is returned.
type
The System.Type of the parent element to search for.
lookOutsideVisualTree
Specifies whether the search should go on outside the VisualTree.

Return Value

The parent of the visual.
See Also

Reference

VTreeHelper Class
VTreeHelper Members
Overload List