Show / Hide Table of Contents

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
IItemContainerGenerator.GetItemContainerGeneratorForPanel(Panel)
IItemContainerGenerator.StartAt(GeneratorPosition, GeneratorDirection, Boolean)
IItemContainerGenerator.GenerateNext(Boolean)
IItemContainerGenerator.PrepareItemContainer(DependencyObject)
IItemContainerGenerator.RemoveAll()
IItemContainerGenerator.Remove(GeneratorPosition, Int32)
IItemContainerGenerator.GeneratorPositionFromIndex(Int32)
IItemContainerGenerator.IndexFromGeneratorPosition(GeneratorPosition)
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.dll
Syntax
public interface IRecyclingItemContainerGenerator : IItemContainerGenerator

Methods

| Improve this Doc View Source

Recycle(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.

  • Improve this Doc
  • View Source