IItemContainerGenerator Interface

 

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

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

public interface IItemContainerGenerator

NameDescription
System_CAPS_pubmethodGenerateNext()

Returns the container element used to display the next item.

System_CAPS_pubmethodGenerateNext(Boolean)

Returns the container element used to display the next item, and whether the container element has been newly generated (realized).

System_CAPS_pubmethodGeneratorPositionFromIndex(Int32)

Returns the GeneratorPosition object that maps to the item at the specified index.

System_CAPS_pubmethodGetItemContainerGeneratorForPanel(Panel)

Returns the ItemContainerGenerator appropriate for use by the specified panel.

System_CAPS_pubmethodIndexFromGeneratorPosition(GeneratorPosition)

Returns the index that maps to the specified GeneratorPosition.

System_CAPS_pubmethodPrepareItemContainer(DependencyObject)

Prepares the specified element as the container for the corresponding item.

System_CAPS_pubmethodRemove(GeneratorPosition, Int32)

Removes one or more generated (realized) items.

System_CAPS_pubmethodRemoveAll()

Removes all generated (realized) items.

System_CAPS_pubmethodStartAt(GeneratorPosition, GeneratorDirection)

Prepares the generator to generate items, starting at the specified GeneratorPosition, and in the specified GeneratorDirection.

System_CAPS_pubmethodStartAt(GeneratorPosition, GeneratorDirection, Boolean)

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.

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.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: