Summary
Creates containers for items and maintains a list of created containers.
- Namespace
- Avalonia
.Controls .Generators - Interfaces
- Base Types
-
- object
- Item
Container Generator
- Derived Types
graph BT
Type-->Base0["ItemContainerGenerator"]
click Base0 "/api/Avalonia.Controls.Generators/ItemContainerGenerator"
Base0-->Base1["object"]
Type-.->Interface0["IItemContainerGenerator"]
click Interface0 "/api/Avalonia.Controls.Generators/IItemContainerGenerator"
Type["ItemContainerGenerator<T>"]
class Type type-node
Derived0["TreeItemContainerGenerator<T>"]-->Type
click Derived0 "/api/Avalonia.Controls.Generators/TreeItemContainerGenerator_1"
Derived1["MenuItemContainerGenerator"]-->Type
click Derived1 "/api/Avalonia.Controls.Generators/MenuItemContainerGenerator"
Derived2["TabItemContainerGenerator"]-->Type
click Derived2 "/api/Avalonia.Controls.Generators/TabItemContainerGenerator"
Syntax
public class ItemContainerGenerator<T> : ItemContainerGenerator, IItemContainerGenerator
where T : class, IControl, new()
Type Parameters
Name | Description |
---|---|
T | The type of the container. |
Constructors
Name | Summary |
---|---|
Item |
Initializes a new instance of the ItemContainerGenerator<T> class.
|
Events
Name | Type | Summary |
---|---|---|
Dematerialized | EventHandler |
Event raised whenever containers are dematerialized.
Inherited from Item
|
Materialized | EventHandler |
Signaled whenever new containers are materialized.
Inherited from Item
|
Recycled | EventHandler |
Event raised whenever containers are recycled.
Inherited from Item
|
Properties
Name | Value | Summary |
---|---|---|
Containers | IEnumerable |
Gets the currently realized containers.
Inherited from Item
|
ContainerType | Type |
Gets the ContainerType, or null if its an untyped ContainerGenerator.
|
ContentProperty | AvaloniaProperty |
Gets the container's Content property.
|
Content |
AvaloniaProperty |
Gets the container's ContentTemplate property.
|
ItemTemplate | IDataTemplate |
Gets or sets the data template used to display the items in the control.
Inherited from Item
|
Owner | IControl |
Gets the owner control.
Inherited from Item
|
Methods
Name | Value | Summary |
---|---|---|
Clear |
IEnumerable |
Clears all created containers and returns the removed controls.
Inherited from Item
|
ContainerFromIndex |
IControl |
Gets the container control representing the item with the specified index.
Inherited from Item
|
CreateContainer |
IControl |
Creates the container for an item.
|
Dematerialize |
IEnumerable |
Removes a set of created containers.
Inherited from Item
|
GetContainerRange |
IEnumerable |
Gets all containers with an index that fall within a range.
Inherited from Item
|
IndexFromContainer |
int |
Gets the index of the specified container control.
Inherited from Item
|
InsertSpace |
void |
Inserts space for newly inserted containers in the index.
Inherited from Item
|
Materialize |
ItemContainerInfo |
Creates a container control for an item.
Inherited from Item
|
MoveContainer |
ItemContainerInfo |
Moves a container.
Inherited from Item
|
RaiseRecycled |
void |
Raises the
Recycled event.
Inherited from Item
|
RemoveRange |
IEnumerable |
Removes a set of created containers and updates the index of later containers to fill
the gap.
Inherited from Item
|
TryRecycle |
bool |