ItemsControlIndexFromContainer Method
Returns the index to the item that has the specified, generated container.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public int IndexFromContainer(
Control container
)
Public Function IndexFromContainer (
container As Control
) As Integer
member IndexFromContainer :
container : Control -> int
- container Control
- The generated container to retrieve the item index for.
Int32
The index to the item that corresponds to the specified generated container, or -1 if
container is not found.