GetLastChild(Visual) Method

Definition

Assembly HeadlessTestingFramework.dll

Gets the last child of a specific type.

public static T? GetLastChild<T>(this Visual visual)
    where T : class

Type parameters

T
The type of child to get.

Parameters

visual
Avalonia.Visual

The parent visual.

Returns

{T}
The last child of the specified type, or null if not found.