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
parentDependencyObjectA direct parent of the queried item.
childNamestringx:Name or Name of child.
typeNamestring
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
TThe type of the queried item.