Returns a collection of elements that contain the specified object and all descendant elements.

Namespace: FirstFloor.SilverlightSpy.Interop
Assembly: FirstFloor.SilverlightSpy.Interop (in FirstFloor.SilverlightSpy.Interop.dll) Version: (


public static IEnumerable<DependencyObject> DescendantsAndSelf(
	this DependencyObject o
Visual Basic
<ExtensionAttribute> _
Public Shared Function DescendantsAndSelf ( _
	o As DependencyObject _
) As IEnumerable(Of DependencyObject)
Visual C++
static IEnumerable<DependencyObject^>^ DescendantsAndSelf(
	DependencyObject^ o


Type: System.Windows..::..DependencyObject
The dependency object.

Return Value

A collection that contains the descendant elements and the object itself.

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 Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also