Interface IRecyclingItemContainerGenerator
Extends the IItemContainerGenerator interface to reuse the UI content it generates. Classes that are responsible for generating user interface (UI) content on behalf of a host implement this interface.
Inherited Members
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.dll
Syntax
public interface IRecyclingItemContainerGenerator : IItemContainerGenerator
Methods
| Improve this Doc View SourceRecycle(GeneratorPosition, Int32)
Disassociates item containers from their data items and saves the containers so they can be reused later for other data items.
Declaration
void Recycle(GeneratorPosition position, int count)
Parameters
Type | Name | Description |
---|---|---|
GeneratorPosition | position | The zero-based index of the first element to reuse. position must refer to a previously generated (realized) item. |
System.Int32 | count | The number of elements to reuse, starting at position. |