'Declaration
Public Overloads Shared Function GetParentOfType( _ ByVal reference As DependencyObject, _ ByVal type As Type, _ ByVal lookOutsideVisualTree As Boolean _ ) As DependencyObject
'Usage
Dim reference As DependencyObject Dim type As Type Dim lookOutsideVisualTree As Boolean Dim value As DependencyObject value = VTreeHelper.GetParentOfType(reference, type, lookOutsideVisualTree)
public static DependencyObject GetParentOfType( DependencyObject reference, Type type, bool lookOutsideVisualTree )
public: static DependencyObject^ GetParentOfType( DependencyObject^ reference, Type^ type, 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.