Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IItemContainerGenerator Interface

An interface that is implemented by classes which are responsible for generating UI content on behalf of a host.

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

public interface IItemContainerGenerator

The IItemContainerGenerator type exposes the following members.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneGenerateNextReturns the container element used to display the next item, and whether the container element has been newly generated (realized).
Public methodSupported by Silverlight for Windows PhoneGeneratorPositionFromIndexReturns the GeneratorPosition object that maps to the item at the specified index.
Public methodSupported by Silverlight for Windows PhoneGetItemContainerGeneratorForPanelReturns the ItemContainerGenerator appropriate for use by the specified panel.
Public methodSupported by Silverlight for Windows PhoneIndexFromGeneratorPositionReturns the index that maps to the specified GeneratorPosition.
Public methodSupported by Silverlight for Windows PhonePrepareItemContainerPrepares the specified element as the container for the corresponding item.
Public methodSupported by Silverlight for Windows PhoneRemoveRemoves one or more generated (realized) items.
Public methodSupported by Silverlight for Windows PhoneRemoveAllRemoves all generated (realized) items.
Public methodSupported by Silverlight for Windows PhoneStartAtPrepares 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.
Top

ItemsControl is the base class for containing and displaying one or more data items. ItemContainerGenerator maintains an association between ItemsControl and the list of items that are displayed by ItemsControl. ItemContainerGenerator is also responsible for generating the UI for those items on behalf of ItemsControl. Panel, VirtualizingPanel, and VirtualizingStackPanel also use ItemContainerGenerator for the same reason.

ItemContainerGenerator implements IItemContainerGenerator and is the interface through which each of the mentioned layout elements communicate with ItemContainerGenerator.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft