FuncDataTemplate.

FuncDataTemplate(Func<object, bool>, Func<object, INameScope, IControl>, bool) Constructor

Summary

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

Syntax

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

Parameters

Name Type Description
match Func<object, bool> A function which determines whether the data template matches the specified data.
build Func<object, INameScope, IControl> A function which returns a control for matching data.
supportsRecycling bool Whether the control can be recycled.

Return Value

Type Description
void