Udostępnij za pośrednictwem


IRecyclingItemContainerGenerator Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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.

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

Syntax

'Declaration
Public Interface IRecyclingItemContainerGenerator _
    Inherits IItemContainerGenerator
public interface IRecyclingItemContainerGenerator : IItemContainerGenerator

The IRecyclingItemContainerGenerator type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone GenerateNext Returns the container element used to display the next item, and whether the container element has been newly generated (realized). (Inherited from IItemContainerGenerator.)
Public methodSupported by Silverlight for Windows Phone GeneratorPositionFromIndex Returns the GeneratorPosition object that maps to the item at the specified index. (Inherited from IItemContainerGenerator.)
Public methodSupported by Silverlight for Windows Phone GetItemContainerGeneratorForPanel Returns the ItemContainerGenerator appropriate for use by the specified panel. (Inherited from IItemContainerGenerator.)
Public methodSupported by Silverlight for Windows Phone IndexFromGeneratorPosition Returns the index that maps to the specified GeneratorPosition. (Inherited from IItemContainerGenerator.)
Public methodSupported by Silverlight for Windows Phone PrepareItemContainer Prepares the specified element as the container for the corresponding item. (Inherited from IItemContainerGenerator.)
Public methodSupported by Silverlight for Windows Phone Recycle Disassociates item containers from their data items and saves the containers so they can be reused later for other data items.
Public methodSupported by Silverlight for Windows Phone Remove Removes one or more generated (realized) items. (Inherited from IItemContainerGenerator.)
Public methodSupported by Silverlight for Windows Phone RemoveAll Removes all generated (realized) items. (Inherited from IItemContainerGenerator.)
Public methodSupported by Silverlight for Windows Phone StartAt Prepares the generator to generate items, starting at the specified GeneratorPosition, and in the specified GeneratorDirection, and controlling whether or not to start at a generated (realized) item. (Inherited from IItemContainerGenerator.)

Top

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.