GetChildAt(Visual, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

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

visual
Avalonia.Visual

The parent visual.

index
Int32

The index of the child.

Returns

{T}
The child at the specified index, cast to the type.