Table of Contents

Method GetElementsRecursively

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetElementsRecursively()

Retrieves all child elements of the current element and its descendants in a recursive manner.

public virtual IEnumerable<FrameworkElement> GetElementsRecursively()

Returns

IEnumerable<FrameworkElement>

An enumerable collection of FrameworkElement instances representing all child elements found within the current element and its descendants.

Remarks

This method traverses the logical tree of elements, yielding each child element before recursively retrieving elements from each child. It is useful for scenarios where a complete list of child elements is needed, such as for layout or rendering purposes.