FindFirstLogical(ILogical, Boolean) Method

Definition

Assembly HeadlessTestingFramework.dll

Finds the first logical descendant of a specific type.

public static T? FindFirstLogical<T>(this ILogical root, bool includeSelf = false)
    where T : class

Type parameters

T
The type of control to find.

Parameters

root
Avalonia.LogicalTree.ILogical

The root logical to search from.

includeSelf
Boolean

Whether to include the root in the search.

Returns

{T}
The first descendant of the specified type, or null if not found.