GetLogicalChildAt(ILogical, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

Gets a logical child at a specific index, cast to a type.

public static T GetLogicalChildAt<T>(this ILogical logical, int index)
    where T : ILogical

Type parameters

T
The expected type of the child.

Parameters

logical
Avalonia.LogicalTree.ILogical

The parent logical.

index
Int32

The index of the child.

Returns

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