IItemContainerGenerator Interface

Summary

Creates containers for items and maintains a list of created containers.
graph TD Type["IItemContainerGenerator"] class Type type-node Type-.->Implementing0["ItemContainerGenerator"] click Implementing0 "/api/Avalonia.Controls.Generators/ItemContainerGenerator" Type-.->Implementing1["TreeItemContainerGenerator<T>"] click Implementing1 "/api/Avalonia.Controls.Generators/TreeItemContainerGenerator_1" Type-.->Implementing2["MenuItemContainerGenerator"] click Implementing2 "/api/Avalonia.Controls.Generators/MenuItemContainerGenerator" Type-.->Implementing3["ItemContainerGenerator<T>"] click Implementing3 "/api/Avalonia.Controls.Generators/ItemContainerGenerator_1" Type-.->Implementing4["ITreeItemContainerGenerator"] click Implementing4 "/api/Avalonia.Controls.Generators/ITreeItemContainerGenerator" Type-.->Implementing5["TabItemContainerGenerator"] click Implementing5 "/api/Avalonia.Controls.Generators/TabItemContainerGenerator"

Syntax

public interface IItemContainerGenerator

Events

Name Type Summary
Dematerialized EventHandler<ItemContainerEventArgs>
Event raised whenever containers are dematerialized.
Materialized EventHandler<ItemContainerEventArgs>
Signaled whenever new containers are materialized.
Recycled EventHandler<ItemContainerEventArgs>
Event raised whenever containers are recycled.

Properties

Name Value Summary
Containers IEnumerable<ItemContainerInfo>
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<ItemContainerInfo>
Clears all created containers and returns the removed controls.
ContainerFromIndex(int) IControl
Gets the container control representing the item with the specified index.
Dematerialize(int, int) IEnumerable<ItemContainerInfo>
Removes a set of created containers.
IndexFromContainer(IControl) int
Gets the index of the specified container control.
InsertSpace(int, int) void
Inserts space for newly inserted containers in the index.
Materialize(int, object, IMemberSelector) ItemContainerInfo
Creates a container control for an item.
RemoveRange(int, int) IEnumerable<ItemContainerInfo>
Removes a set of created containers and updates the index of later containers to fill the gap.
TryRecycle(int, int, object, IMemberSelector) bool