ItemContainerGenerator.ContainerFromIndex Method

July 28, 2014

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

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public DependencyObject ContainerFromIndex(
	int index
)

Parameters

index
Type: System.Int32
The index of the item to retrieve.

Return Value

Type: System.Windows.DependencyObject
The container for the item at the specified index within the item collection, if the item has a container; otherwise, null.

If there is no item at the specified index or the item has no container, the ContainerFromIndex method returns null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft