Returns a DependencyObject value that represents the first parent
of the visual object which type is one of the specified tyles. Method looks up the visual tree until
the desired parent element is found or parent element is equal to the specified endObject.
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public static DependencyObject GetFirstParent( DependencyObject reference, IList<Type> types, DependencyObject endObject ) |
Visual Basic |
---|
Public Shared Function GetFirstParent ( _ reference As DependencyObject, _ types As IList(Of Type), _ endObject As DependencyObject _ ) As DependencyObject |
Parameters
- reference
- Type: System.Windows..::..DependencyObject
The visual whose parent is returned.
- types
- Type: System.Collections.Generic..::..IList<(Of <(<'Type>)>)>
The IList<(Of <(<'T>)>)> list of types to search for.
- endObject
- Type: System.Windows..::..DependencyObject
The visual representing the end point of search.