FuncDataTemplateT(FuncT, Boolean, FuncT, Control, Boolean) Constructor

Initializes a new instance of the FuncDataTemplateT class.

Definition

Namespace: Avalonia.Controls.Templates
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public FuncDataTemplate(
	Func<T, bool> match,
	Func<T, Control> build,
	bool supportsRecycling = false
)

Parameters

match  FuncT, Boolean
A function which determines whether the data template matches the specified data.
build  FuncT, Control
A function which when passed an object of T returns a control.
supportsRecycling  Boolean  (Optional)
Whether the control can be recycled.

See Also