-
Home
-
API
-
Avalonia.HeadlessTestingFramework
-
VisualTreeTestHelper
-
Methods
-
GetChildAt(Visual, Int32)
GetChildAt(Visual, Int32) Method
Definition
Gets a child at a specific index, cast to a type.
public static T GetChildAt<T>(this Visual visual, int index)
where T : Visual
Type parameters
- T
- The expected type of the child.
Parameters
- index
- Int32
The index of the child.
Returns
- {T}
- The child at the specified index, cast to the type.