-
Home
-
API
-
Avalonia.HeadlessTestingFramework
-
TreeXPathExtensions
-
Methods
-
SelectFirstXPath(Visual, String)
SelectFirstXPath(Visual, String) Method
Definition
Selects the first node using XPath expression.
public static T? SelectFirstXPath<T>(this Visual root, string xpath)
where T : class
Type parameters
- T
- The type to cast result to.
Parameters
- xpath
- String
The XPath expression.
Returns
- {T}
- The first matching node, or null.