ItemContainerGenerator class

Expand
This topic has not yet been rated - Rate this topic

ItemContainerGenerator class

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Provides mappings between the items of an ItemsControl and their container elements.

Inheritance

Object
  ItemContainerGenerator

Syntax


public sealed class ItemContainerGenerator : Object

Attributes

MarshalingBehaviorAttribute(Agile)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)
WebHostHiddenAttribute()

Members

The ItemContainerGenerator class has these types of members:

Events

The ItemContainerGenerator class has these events.

EventDescription
ItemsChanged Occurs when the contents of the items collection changes.

 

Methods

The ItemContainerGenerator class has these methods. It also inherits methods from the Object class.

MethodDescription
ContainerFromIndex Returns the container for the item at the specified index within the ItemCollection.
ContainerFromItem Returns the container corresponding to the specified item.
GenerateNext Returns the container element used to display the next item, and indicates whether the container element has been newly generated (realized).
GeneratorPositionFromIndex Gets the generated position of the item at the specified index.
GetItemContainerGeneratorForPanel Returns the ItemContainerGenerator that is appropriate for use by the specified panel.
IndexFromContainer Returns the index to the item that has the specified, generated container.
IndexFromGeneratorPosition Returns the index that maps to the specified GeneratorPosition.
ItemFromContainer Returns the item that corresponds to the specified, generated container.
PrepareItemContainer Prepares the specified element as the container for the corresponding item.
Recycle Disassociates item containers from their data items and saves the containers so they can be reused later for other data items.
Remove Removes one or more generated (realized) items.
RemoveAll Removes all generated (realized) items.
StartAt Prepares the generator to generate items, starting at the specified GeneratorPosition and moving in the specified GeneratorDirection. This method also controls whether or not to start at a generated (realized) item.
Stop Disposes the ItemContainerGenerator.

 

Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Object

 

 

Build date: 5/22/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD