SelectXPath(Visual, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Selects nodes using XPath expression from visual tree.

public static IEnumerable<T> SelectXPath<T>(this Visual root, string xpath)
    where T : class

Type parameters

T
The type to cast results to.

Parameters

root
Avalonia.Visual

The root visual.

xpath
String

The XPath expression.

Returns

IEnumerable<T>
Matching nodes of the specified type.