IRecyclingDataTemplate Interface
Definition
An Avalonia.Controls.Templates.IDataTemplate that supports recycling existing elements.
public interface IRecyclingDataTemplate
Methods
| Name | Description |
|---|---|
| Build | Creates or recycles a control to display the specified data. |
Build Method
Creates or recycles a control to display the specified data.
public Avalonia.Controls.Control Build(object data, Avalonia.Controls.Control existing)
Parameters
data object
The data to display.
existing Avalonia.Controls.Control
An optional control to recycle.
Returns
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.