Class ChildrenOfTypeExtensions
Contains extension methods for enumerating the children of an element.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class ChildrenOfTypeExtensions
Methods
ChildrenOfType<T>(DependencyObject)
Gets all child elements recursively from the visual tree by given type.
Declaration
public static IEnumerable<T> ChildrenOfType<T>(this DependencyObject element)
where T : DependencyObject
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Collections.Generic.IEnumerable<T>
|
Type Parameters
T
|
FindChildByType<T>(DependencyObject)
Finds child element of the specified type. Uses breadth-first search.
Declaration
public static T FindChildByType<T>(this DependencyObject element)
where T : DependencyObject
Parameters
System.Windows.DependencyObject
element
The target System.Windows.DependencyObject which children will be traversed. |
Returns
T
The first child element that is of the specified type. |
Type Parameters
T
The type of the child that will be searched in the object hierarchy. The type should be System.Windows.DependencyObject. |