Recycle Method
Collapse the table of content
Expand the table of content

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.

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

void Recycle(
	GeneratorPosition position,
	int count
)

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft