Click or drag to resize
ChildrenOfTypeExtensionsFindChildByTypeT Method
Finds child element of the specified type. Uses breadth-first search.

Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls (in Telerik.Windows.Controls.dll) Version: 2017.3.913.40 (2017.3.913.40)
Syntax
public static T FindChildByType<T>(
	this DependencyObject element
)
where T : DependencyObject

Parameters

element
Type: System.WindowsDependencyObject
The target DependencyObject which children will be traversed.

Type Parameters

T
The type of the child that will be searched in the object hierarchy. The type should be DependencyObject.

Return Value

Type: T
The first child element that is of the specified type.

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