Method FindElement
FindElement(string)
Recursively searches all child elements for an element with the specified name, and throws an exception if the requested element is not found.
public FrameworkElement FindElement(string name)
Parameters
namestringThe name of the element to be found.
Returns
- FrameworkElement
The requested element. If no element with the provided name was found, an exception is thrown.
Exceptions
- InvalidOperationException
A element with the provided name was found.