Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / VTreeHelper Class / GetChildrenOfType Method
The parent visual, referenced as a System.Windows.DependencyObject.
The System.Type of the children element to search for.
The IList object to fill with found objects.

In This Topic
    GetChildrenOfType Method (VTreeHelper)
    In This Topic
    Returns all children visual objects of the specified type within a specified parent.
    Syntax
    'Declaration
     
    
    Public Shared Sub GetChildrenOfType( _
       ByVal reference As DependencyObject, _
       ByVal type As Type, _
       ByRef list As IList(Of DependencyObject) _
    ) 
    public static void GetChildrenOfType( 
       DependencyObject reference,
       Type type,
       ref IList<DependencyObject> list
    )

    Parameters

    reference
    The parent visual, referenced as a System.Windows.DependencyObject.
    type
    The System.Type of the children element to search for.
    list
    The IList object to fill with found objects.
    See Also