Summary
Creates containers for items and maintains a list of created containers.
graph BT
Type["IItemContainerGenerator"]
class Type type-node
Implementing0["ITreeItemContainerGenerator"]-.->Type
click Implementing0 "/api/Avalonia.Controls.Generators/ITreeItemContainerGenerator"
Implementing1["TreeItemContainerGenerator<T>"]-.->Type
click Implementing1 "/api/Avalonia.Controls.Generators/TreeItemContainerGenerator_1"
Implementing2["ItemContainerGenerator"]-.->Type
click Implementing2 "/api/Avalonia.Controls.Generators/ItemContainerGenerator"
Implementing3["MenuItemContainerGenerator"]-.->Type
click Implementing3 "/api/Avalonia.Controls.Generators/MenuItemContainerGenerator"
Implementing4["TabItemContainerGenerator"]-.->Type
click Implementing4 "/api/Avalonia.Controls.Generators/TabItemContainerGenerator"
Implementing5["ItemContainerGenerator<T>"]-.->Type
click Implementing5 "/api/Avalonia.Controls.Generators/ItemContainerGenerator_1"
Syntax
public interface IItemContainerGenerator
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.
|
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.
|
Dematerialize |
IEnumerable |
Removes a set of created containers.
|
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.
|
RemoveRange |
IEnumerable |
Removes a set of created containers and updates the index of later containers to fill
the gap.
|
TryRecycle |
bool |