'Declaration
Public Shared Function GetFirstParent( _ ByVal reference As DependencyObject, _ ByVal types As IList(Of Type), _ ByVal endObject As DependencyObject _ ) As DependencyObject
public static DependencyObject GetFirstParent( DependencyObject reference, IList<Type> types, DependencyObject endObject )
Parameters
- reference
- The visual whose parent is returned.
- types
- The IList list of types to search for.
- endObject
- The visual representing the end point of search.
Return Value
The parent of the visual.