ItemsControl.ContainerFromIndex(Int32) Method

Definition

Returns the container for the item at the specified index within the ItemCollection.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.ItemsControl.ContainerFromIndex.

public:
 virtual DependencyObject ^ ContainerFromIndex(int index) = ContainerFromIndex;
DependencyObject ContainerFromIndex(int index);
public DependencyObject ContainerFromIndex(int index);
function containerFromIndex(index)
Public Function ContainerFromIndex (index As Integer) As DependencyObject

Parameters

index
Int32

The index of the item to retrieve.

Returns

DependencyObject

The container for the item at the specified index within the item collection, if the item has a container; otherwise, null.

Implements

Applies to