FuncDataTemplate(FuncObject, Boolean, FuncObject, INameScope, Control, Boolean) Constructor

Initializes a new instance of the FuncDataTemplate class.

Definition

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

Parameters

match  FuncObject, Boolean
A function which determines whether the data template matches the specified data.
build  FuncObject, INameScope, Control
A function which returns a control for matching data.
supportsRecycling  Boolean  (Optional)
Whether the control can be recycled.

See Also