ItemsControl.ContainerFromIndex(Int32) Method

Definition

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

C#
public DependencyObject ContainerFromIndex(int index);

Parameters

index
Int32

The index of the item to retrieve.

Returns

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

Implements

M:Microsoft.UI.Xaml.Controls.IItemContainerMapping.ContainerFromIndex(System.Int32)

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6