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