ContainerFromIndex Method
Returns the container for the item at the specified index.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
protected abstract Control? ContainerFromIndex(
int index
)
Protected MustOverride Function ContainerFromIndex (
index As Integer
) As Control
abstract ContainerFromIndex :
index : int -> Control
Parameters
- Int32
- The index of the item to retrieve.
Return Value
Control
The container for the item at the specified index within the item collection, if the item is realized; otherwise, null.
Remarks
Note for implementors: if the item at the specified index is an ItemIsOwnContainer item that has previously been realized, then the item should be returned even if it currently falls outside the realized viewport.