Summary
Creates containers for items and maintains a list of created containers.
- Namespace
- Avalonia
.Controls .Generators - Interfaces
- Base Types
-
- object
- Derived Types
graph BT
Type-->Base0["object"]
Type-.->Interface0["IItemContainerGenerator"]
click Interface0 "/api/Avalonia.Controls.Generators/IItemContainerGenerator"
Type["ItemContainerGenerator"]
class Type type-node
Derived0["ItemContainerGenerator<T>"]-->Type
click Derived0 "/api/Avalonia.Controls.Generators/ItemContainerGenerator_1"
Syntax
public class ItemContainerGenerator : IItemContainerGenerator
Constructors
Name | Summary |
---|---|
Item |
Initializes a new instance of the ItemContainerGenerator class.
|
Events
Name | Type | Summary |
---|---|---|
Dematerialized | EventHandler |
Event raised whenever containers are dematerialized.
|
Materialized | EventHandler |
Signaled whenever new containers are materialized.
|
Recycled | EventHandler |
Event raised whenever containers are recycled.
|
Properties
Name | Value | Summary |
---|---|---|
Containers | IEnumerable |
Gets the currently realized containers.
|
ContainerType | Type |
Gets the ContainerType, or null if its an untyped ContainerGenerator.
|
ItemTemplate | IDataTemplate |
Gets or sets the data template used to display the items in the control.
|
Owner | IControl |
Gets the owner control.
|
Methods
Name | Value | Summary |
---|---|---|
Clear |
IEnumerable |
Clears all created containers and returns the removed controls.
|
ContainerFromIndex |
IControl |
Gets the container control representing the item with the specified index.
|
CreateContainer |
IControl |
Creates the container for an item.
|
Dematerialize |
IEnumerable |
Removes a set of created containers.
|
GetContainerRange |
IEnumerable |
Gets all containers with an index that fall within a range.
|
IndexFromContainer |
int |
Gets the index of the specified container control.
|
InsertSpace |
void |
Inserts space for newly inserted containers in the index.
|
Materialize |
ItemContainerInfo |
Creates a container control for an item.
|
MoveContainer |
ItemContainerInfo |
Moves a container.
|
RaiseRecycled |
void |
Raises the
Recycled event.
|
RemoveRange |
IEnumerable |
Removes a set of created containers and updates the index of later containers to fill
the gap.
|
TryRecycle |
bool |