FuncDataTemplate.

FuncDataTemplate(Type, 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(Type type, Func<object, INameScope, IControl> build, bool supportsRecycling = false)

Parameters

Name Type Description
type Type The type of data which the data template matches.
build Func<object, INameScope, IControl> A function which when passed an object of type returns a control.
supportsRecycling bool Whether the control can be recycled.

Return Value

Type Description
void