'Declaration
Public Shared Function GetFirstParent( _ ByVal reference As DependencyObject, _ ByVal types As IList(Of Type), _ ByVal endObject As DependencyObject _ ) As DependencyObject
'Usage
Dim reference As DependencyObject Dim types As IList(Of Type) Dim endObject As DependencyObject Dim value As DependencyObject value = VTreeHelper.GetFirstParent(reference, types, endObject)
public static DependencyObject GetFirstParent( DependencyObject reference, IList<Type> types, DependencyObject endObject )
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.