[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
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.
| Event | Description |
|---|---|
| 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.
| Method | Description |
|---|---|
| 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 |
|
|
Metadata |
|
See also
Build date: 5/22/2012
