TreeItemContainerGenerator<T> Class


Creates containers for tree items and maintains a list of created containers.
graph BT Type-->Base0["ItemContainerGenerator<T>"] Base0-->Base1["ItemContainerGenerator"] click Base1 "/api/Avalonia.Controls.Generators/ItemContainerGenerator" Base1-->Base2["object"] Type-.->Interface0["ITreeItemContainerGenerator"] click Interface0 "/api/Avalonia.Controls.Generators/ITreeItemContainerGenerator" Type-.->Interface1["IItemContainerGenerator"] click Interface1 "/api/Avalonia.Controls.Generators/IItemContainerGenerator" Type["TreeItemContainerGenerator<T>"] class Type type-node


public class TreeItemContainerGenerator<T> : ItemContainerGenerator<T>, 
    ITreeItemContainerGenerator, IItemContainerGenerator
    where T : class, IControl, new()

Type Parameters

Name Description
T The type of the container.



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


Name Value Summary
Containers IEnumerable<ItemContainerInfo>
Gets the currently realized containers.
Inherited from ItemContainerGenerator
Index TreeContainerIndex
Gets the container index for the tree.
IsExpandedProperty AvaloniaProperty
Gets the item container's IsExpanded property.
ItemsProperty AvaloniaProperty
Gets the item container's Items property.
ItemTemplate IDataTemplate
Gets or sets the data template used to display the items in the control.
Inherited from ItemContainerGenerator
Owner IControl
Gets the owner control.
Inherited from ItemContainerGenerator


Name Value Summary
Clear() IEnumerable<ItemContainerInfo>
ContainerFromIndex(int) IControl
Gets the container control representing the item with the specified index.
Inherited from ItemContainerGenerator
CreateContainer(object) IControl
Dematerialize(int, int) IEnumerable<ItemContainerInfo>
GetContainerRange(int, int) IEnumerable<ItemContainerInfo>
Gets all containers with an index that fall within a range.
Inherited from ItemContainerGenerator
IndexFromContainer(IControl) int
Gets the index of the specified container control.
Inherited from ItemContainerGenerator
InsertSpace(int, int) void
Inserts space for newly inserted containers in the index.
Inherited from ItemContainerGenerator
Materialize(int, object) ItemContainerInfo
Creates a container control for an item.
Inherited from ItemContainerGenerator
MoveContainer(int, int, object) ItemContainerInfo
Moves a container.
Inherited from ItemContainerGenerator
RaiseRecycled(ItemContainerEventArgs) void
Raises the Recycled event.
Inherited from ItemContainerGenerator
RemoveRange(int, int) IEnumerable<ItemContainerInfo>
TryRecycle(int, int, object) bool
UpdateIndex() void