Summary
Finds a Child of a given item in the visual tree.
Syntax
public static T FindChild<T>(this DependencyObject parent, string childName = null)
where T : DependencyObject
Type Parameters
Name |
Description |
T |
The type of the queried item. |
Parameters
Name |
Type |
Description |
parent |
DependencyObject |
A direct parent of the queried item. |
childName |
string |
x:Name or Name of child. |
Return Value
Type |
Description |
T |
The first parent item that matches the submitted type parameter.
If not matching item can be found,
a null parent is being returned. |