Skip to main content

ItemFromContainer Method

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

Definition​

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

public Object? ItemFromContainer(
Control container
)

Parameters​

  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​

Reference​

ItemsControl Class
Avalonia.Controls Namespace