FindLogicalByName(ILogical, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Finds a control by its Name property in the logical tree.

public static Control? FindLogicalByName(this ILogical root, string name)

Parameters

root
Avalonia.LogicalTree.ILogical

The root logical to search from.

name
String

The name to search for.

Returns

Avalonia.Controls.Control
The control with the specified name, or null if not found.