ComponentOne Basic Library for WPF and Silverlight
GetChildOfType Method (VTreeHelper)


C1.Silverlight Namespace > VTreeHelper Class : GetChildOfType Method
The parent visual, referenced as a System.Windows.DependencyObject.
The System.Type of the children element to search for.
Returns the first child visual object of the specified type within a specified parent.
Syntax
'Declaration
 
Public Shared Function GetChildOfType( _
   ByVal reference As System.Windows.DependencyObject, _
   ByVal type As System.Type _
) As System.Windows.DependencyObject
'Usage
 
Dim reference As System.Windows.DependencyObject
Dim type As System.Type
Dim value As System.Windows.DependencyObject
 
value = VTreeHelper.GetChildOfType(reference, type)
public static System.Windows.DependencyObject GetChildOfType( 
   System.Windows.DependencyObject reference,
   System.Type type
)

Parameters

reference
The parent visual, referenced as a System.Windows.DependencyObject.
type
The System.Type of the children element to search for.

Return Value

The visual object of the specified type.
See Also

Reference

VTreeHelper Class
VTreeHelper Members