Intersoft ClientUI Documentation
GetChildsRecursive(DependencyObject,Boolean,Int32) Method



The root element.
Include root element in the returned collection.
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 includeRoot As Boolean, _
   ByVal level As Integer _
) As IEnumerable(Of DependencyObject)
Dim root As DependencyObject
Dim includeRoot As Boolean
Dim level As Integer
Dim value As IEnumerable(Of DependencyObject)
 
value = Utility.GetChildsRecursive(root, includeRoot, level)
public static IEnumerable<DependencyObject> GetChildsRecursive( 
   DependencyObject root,
   bool includeRoot,
   int level
)
public:
static IEnumerable<DependencyObject^>^ GetChildsRecursive( 
   DependencyObject^ root,
   bool includeRoot,
   int level
) 

Parameters

root
The root element.
includeRoot
Include root element in the returned collection.
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