GetParentOfType(DependencyObject,Type) Method
In This Topic
Returns a Windows.UI.Xaml.DependencyObject value that represents the parent of the visual object of the specified type. Method looks up the visual tree until the desired parent element is found or parent element is null.
Syntax
'Declaration
Public Overloads Shared Function GetParentOfType( _
ByVal As Windows.UI.Xaml.DependencyObject, _
ByVal As System.Type _
) As Windows.UI.Xaml.DependencyObject
public static Windows.UI.Xaml.DependencyObject GetParentOfType(
Windows.UI.Xaml.DependencyObject ,
System.Type
)
Parameters
- reference
- The visual whose parent is returned.
- type
- The System.Type of the parent element to search for.
Return Value
The parent of the visual.
See Also