Basic Library for WinRT
GetParentOfType(DependencyObject,Type,DependencyObject) Method

The visual whose parent is returned.
The System.Type of the parent element to search for.
The visual representing the end point of search.
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 equal to the specified endObject.
Syntax
'Declaration
 
Public Overloads Shared Function GetParentOfType( _
   ByVal reference As Windows.UI.Xaml.DependencyObject, _
   ByVal type As System.Type, _
   ByVal endObject As Windows.UI.Xaml.DependencyObject _
) As Windows.UI.Xaml.DependencyObject
public static Windows.UI.Xaml.DependencyObject GetParentOfType( 
   Windows.UI.Xaml.DependencyObject reference,
   System.Type type,
   Windows.UI.Xaml.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.
See Also

Reference

VTreeHelper Class
VTreeHelper Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback