Summary
Maintains an index of all item containers currently materialized by a
TreeView
.
- Namespace
- Avalonia
.Controls .Generators - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["TreeContainerIndex"]
class Type type-node
Syntax
public class TreeContainerIndex
Remarks
Each
TreeViewItem
has its own TreeItemContainerGenerator<T>
that maintains the list of its direct children, but they also share an instance of this
class in their Index
property which tracks
the containers materialized for the entire tree.
Events
Name | Type | Summary |
---|---|---|
Dematerialized | EventHandler |
Event raised whenever containers are dematerialized.
|
Materialized | EventHandler |
Signaled whenever new containers are materialized.
|
Properties
Name | Value | Summary |
---|---|---|
Containers | IEnumerable |
Gets the currently materialized containers.
|
Items | IEnumerable |
Gets the items of currently materialized containers.
|
Methods
Name | Value | Summary |
---|---|---|
Add |
void |
Adds an entry to the index.
|
ContainerFromItem |
IControl |
Gets the container for an item.
|
ItemFromContainer |
object |
Gets the item for a container.
|
Remove |
void |
Removes a container from the index.
|
Remove |
void |
Removes a set of containers from the index.
|