Method FindChild
- Namespace
- Innova.Prism.Library.ExtensionMethods
- Assembly
- Innova.Prism.Library.dll
FindChild<T>(DependencyObject, string, string)
Finds a Child of a given item in the visual tree.
public static T FindChild<T>(this DependencyObject parent, string childName = null, string typeName = null) where T : DependencyObject
Parameters
parent
DependencyObjectA direct parent of the queried item.
childName
stringx:Name or Name of child.
typeName
string
Returns
- T
The first parent item that matches the submitted type parameter. If not matching item can be found, a null parent is being returned.
Type Parameters
T
The type of the queried item.