ItemsControlItemFromContainer Method

Returns the item that corresponds to the specified, generated container.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public Object? ItemFromContainer(
	Control container
)

Parameters

container  Control
The control that corresponds to the item to be returned.

Return Value

Object
The contained item, or the container if it does not contain an item.

See Also