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)

'Declaration
Public Function ContainerFromIndex ( _
	index As Integer _
) As DependencyObject

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, Nothing.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft