-
Home
-
API
-
Avalonia.HeadlessTestingFramework
-
LogicalTreeTestHelper
-
Methods
-
GetLogicalByName(ILogical, String)
GetLogicalByName(ILogical, String) Method
Definition
Gets a control by name in the logical tree, throwing if not found.
public static T GetLogicalByName<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.