'Declaration
Public Overloads Shared Function GetParentOfType( _ ByVal reference As DependencyObject, _ ByVal type As Type, _ ByVal endObject As DependencyObject _ ) As DependencyObject
public static DependencyObject GetParentOfType( DependencyObject reference, Type type, DependencyObject 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.