TreeItemContainerGenerator<T> Class

Summary

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

Syntax

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

Type Parameters

Name Description
T The type of the container.

Constructors

Events

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

Properties

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

Methods

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, IMemberSelector) 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, IMemberSelector) bool