IndexFromGeneratorPosition Method

IItemContainerGenerator.IndexFromGeneratorPosition Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns the index that maps to the specified GeneratorPosition.

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

int IndexFromGeneratorPosition(
	GeneratorPosition position
)

Parameters

position
Type: System.Windows.Controls.Primitives.GeneratorPosition
The index of desired item.
The GeneratorPosition for the desired index.

Return Value

Type: System.Int32
An Int32 that is the index which maps to the specified GeneratorPosition.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft