편집

다음을 통해 공유


IItemContainerGenerator Interface

Definition

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

public interface class IItemContainerGenerator
public interface IItemContainerGenerator
type IItemContainerGenerator = interface
Public Interface IItemContainerGenerator
Derived

Remarks

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.

Methods

GenerateNext()

Returns the container element used to display the next item.

GenerateNext(Boolean)

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

GeneratorPositionFromIndex(Int32)

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

GetItemContainerGeneratorForPanel(Panel)

Returns the ItemContainerGenerator appropriate for use by the specified panel.

IndexFromGeneratorPosition(GeneratorPosition)

Returns the index that maps to the specified GeneratorPosition.

PrepareItemContainer(DependencyObject)

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

Remove(GeneratorPosition, Int32)

Removes one or more generated (realized) items.

RemoveAll()

Removes all generated (realized) items.

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

StartAt(GeneratorPosition, GeneratorDirection)

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

Applies to