Table of Contents

Interface IRecyclingDataTemplate

Namespace
Avalonia.Controls.Templates
Assembly
Avalonia.Controls.dll

An IDataTemplate that supports recycling existing elements.

public interface IRecyclingDataTemplate : IDataTemplate, ITemplate<object?, Control?>
Inherited Members

Methods

Build(object?, Control?)

Creates or recycles a control to display the specified data.

Control? Build(object? data, Control? existing)

Parameters

data object

The data to display.

existing Control

An optional control to recycle.

Returns

Control

The existing control if supplied and applicable to data, otherwise a new control or null.

Remarks

The caller should ensure that any control passed to existing originated from the same data template.