ItemsControlContainerFromItem Method

Returns the container corresponding to the specified item.

Definition

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

Parameters

item  Object
The item to retrieve the container for.

Return Value

Control
A container that corresponds to the specified item, if the item has a container and exists in the collection; otherwise, null.

See Also