Intersoft ClientUI Documentation
GetChildsRecursive(DependencyObject,Int32) Method



The root element.
How deep it should search. (-1 will dig deep until the bottom elements)
Gets all coresponding childs from given root element.
Syntax
Public Overloads Shared Function GetChildsRecursive( _
   ByVal root As DependencyObject, _
   ByVal level As Integer _
) As IEnumerable(Of DependencyObject)
Dim root As DependencyObject
Dim level As Integer
Dim value As IEnumerable(Of DependencyObject)
 
value = Utility.GetChildsRecursive(root, level)
public static IEnumerable<DependencyObject> GetChildsRecursive( 
   DependencyObject root,
   int level
)
public:
static IEnumerable<DependencyObject^>^ GetChildsRecursive( 
   DependencyObject^ root,
   int level
) 

Parameters

root
The root element.
level
How deep it should search. (-1 will dig deep until the bottom elements)

Return Value

All childs that belongs to given root element.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Utility Class
Utility Members
Overload List

Send Feedback