-
Home
-
API
-
Avalonia.HeadlessTestingFramework
-
LogicalTreeTestHelper
-
Methods
-
FindLogicalByName(ILogical, String)
FindLogicalByName(ILogical, String) Method
Definition
Finds a control by its Name property with a specific type in the logical tree.
public static T? FindLogicalByName<T>(this ILogical root, string name)
where T : Control
Type parameters
- T
- The expected type of the control.
Parameters
- name
- String
The name to search for.
Returns
- {T}
- The control with the specified name and type, or null if not found.