FuncDataTemplate<T>.

FuncDataTemplate(Func<T, bool>, Func<T, IControl>, bool) Constructor

Summary

Initializes a new instance of the FuncDataTemplate<T> class.
Namespace
Avalonia.Controls.Templates
Containing Type
FuncDataTemplate<T>

Syntax

public FuncDataTemplate(Func<T, bool> match, Func<T, IControl> build, bool supportsRecycling = false)

Parameters

Name Type Description
match Func<T, bool> A function which determines whether the data template matches the specified data.
build Func<T, IControl> A function which when passed an object of T returns a control.
supportsRecycling bool Whether the control can be recycled.

Return Value

Type Description
void