'Declaration
Public Overloads Shared Function GetParentOfType( _ ByVal reference As System.Windows.DependencyObject, _ ByVal type As System.Type, _ ByVal endObject As System.Windows.DependencyObject _ ) As System.Windows.DependencyObject
'Usage
Dim reference As System.Windows.DependencyObject Dim type As System.Type Dim endObject As System.Windows.DependencyObject Dim value As System.Windows.DependencyObject value = VTreeHelper.GetParentOfType(reference, type, endObject)
Parameters
- reference
- The visual whose parent is returned.
- type
- The System.Type of the parent element to search for.
- endObject
- The visual representing the end point of search.
Return Value
The parent of the visual.