ItemContainerGenerator.IRecyclingItemContainerGenerator.Recycle Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Disassociates item containers from their data items and saves the containers so they can be reused later for other data items.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Private Sub Recycle ( _ position As GeneratorPosition, _ count As Integer _ ) Implements IRecyclingItemContainerGenerator.Recycle
Parameters
- position
- Type: System.Windows.Controls.Primitives.GeneratorPosition
The zero-based index of the first element to reuse. position must refer to a previously generated (realized) item.
- count
- Type: System.Int32
The number of elements to reuse, starting at position.
Implements
IRecyclingItemContainerGenerator.Recycle(GeneratorPosition, Int32)This member is an explicit interface member implementation. It can be used only when the ItemContainerGenerator instance is cast to an IRecyclingItemContainerGenerator interface.
Show: