IRecyclingDataTemplateBuild(Object, Control) Method
Creates or recycles a control to display the specified data.
Namespace: Avalonia.Controls.TemplatesAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
Control? Build(
Object? data,
Control? existing
)
Function Build (
data As Object,
existing As Control
) As Control
abstract Build :
data : Object *
existing : Control -> Control
- data Object
- The data to display.
- existing Control
- An optional control to recycle.
Control
The
existing control if supplied and applicable to
data, otherwise a new control or null.
The caller should ensure that any control passed to existing
originated from the same data template.