GetItems(ItemsControl) Method

Definition

Assembly HeadlessTestingFramework.dll

Gets all items from an ItemsControl as a typed enumerable.

public static IEnumerable<T> GetItems<T>(this ItemsControl itemsControl)
    where T : class

Type parameters

T
The expected type of the items.

Parameters

itemsControl
Avalonia.Controls.ItemsControl

The items control.

Returns

IEnumerable<T>
The items cast to the specified type.