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


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 System.Collections.Generic.IList`1 object to fill with found objects.
Returns all children visual objects of the specified type within a specified parent.
Syntax
'Declaration
 
Public Shared Sub GetChildrenOfType( _
   ByVal reference As System.Windows.DependencyObject, _
   ByVal type As System.Type, _
   ByRef list As System.Collections.Generic.IList(Of DependencyObject) _
) 
'Usage
 
Dim reference As System.Windows.DependencyObject
Dim type As System.Type
Dim list As System.Collections.Generic.IList(Of DependencyObject)
 
VTreeHelper.GetChildrenOfType(reference, type, list)
public static void GetChildrenOfType( 
   System.Windows.DependencyObject reference,
   System.Type type,
   ref System.Collections.Generic.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 System.Collections.Generic.IList`1 object to fill with found objects.
See Also

Reference

VTreeHelper Class
VTreeHelper Members