GetItemAt(ItemsControl, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

Gets an item at a specific index from an ItemsControl.

public static T? GetItemAt<T>(this ItemsControl itemsControl, int index)
    where T : class

Type parameters

T
The expected type of the item.

Parameters

itemsControl
Avalonia.Controls.ItemsControl

The items control.

index
Int32

The index of the item.

Returns

{T}
The item at the specified index.