Method TryFindElement
TryFindElement(string?)
Recursively searches all child elements for an element with the specified name, and returns that element if found.
public virtual FrameworkElement? TryFindElement(string? name)
Parameters
namestringThe name of the element to be found.
Returns
- FrameworkElement
The found element, or
nullif no element with the provided name is found.