Retrieves all visual descendants of a framework element.

Namespace: FirstFloor.Documents
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)

Syntax

C#
public static IEnumerable<FrameworkElement> Descendants(
	this DependencyObject parent
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function Descendants ( _
	parent As DependencyObject _
) As IEnumerable(Of FrameworkElement)
Visual C++
[ExtensionAttribute]
public:
static IEnumerable<FrameworkElement^>^ Descendants(
	DependencyObject^ parent
)

Parameters

parent
Type: System.Windows..::..DependencyObject
The parent.

Return Value

The IEnumerable containing all visual children in the subtree of specified parent.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DependencyObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also