IRecyclingDataTemplateBuild(Object, Control) Method

Creates or recycles a control to display the specified data.

Definition

Namespace: Avalonia.Controls.Templates
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
Control? Build(
	Object? data,
	Control? existing
)

Parameters

data  Object
The data to display.
existing  Control
An optional control to recycle.

Return Value

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.

See Also