IElementFactory Interface

Summary

A data template that supports creating and recyling elements for an ItemsRepeater.
Namespace
Avalonia.Controls
Interfaces
Implementing Types
graph BT Type-.->Interface0["IDataTemplate"] click Interface0 "/api/Avalonia.Controls.Templates/IDataTemplate" Type-.->Interface1["ITemplate<object, IControl>"] Type["IElementFactory"] class Type type-node Implementing0["RecyclingElementFactory"]-.->Type click Implementing0 "/api/Avalonia.Controls/RecyclingElementFactory" Implementing1["ElementFactory"]-.->Type click Implementing1 "/api/Avalonia.Controls/ElementFactory"

Syntax

public interface IElementFactory : IDataTemplate, ITemplate<object, IControl>

Methods

Name Value Summary
GetElement(ElementFactoryGetArgs) IControl
Gets an IControl.
RecycleElement(ElementFactoryRecycleArgs) void
Recycles an IControl that was previously retrieved using GetElement(ElementFactoryGetArgs).