Method TryFindElement
TryFindElement(string)
Recursively searches all LogicalChildrenCollection for a control with the specified name, and returns that control if found.
public FrameworkElement? TryFindElement(string name)
Parameters
name
stringThe name of the control to be found.
Returns
- FrameworkElement
The found control, or
null
if no control with the provided name is found.