Skip to main content

ContainerFromItem Method

Returns the container corresponding to the specified item.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public Control? ContainerFromItem(
Object item
)

Parameters

  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

Reference

ItemsControl Class
Avalonia.Controls Namespace