Class ChildrenOfTypeExtensions
Contains extension methods for enumerating the children of an element.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class ChildrenOfTypeExtensions : Object
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.
|
Returns
System.
|
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. The target System. |
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. |