FuncTreeDataTemplateT(FuncT, INameScope, Control, FuncT, IEnumerable) Constructor

Initializes a new instance of the FuncTreeDataTemplateT class.

Definition

Namespace: Avalonia.Controls.Templates
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public FuncTreeDataTemplate(
	Func<T, INameScope, Control> build,
	Func<T, IEnumerable> itemsSelector
)

Parameters

build  FuncT, INameScope, Control
A function which when passed an object of T returns a control.
itemsSelector  FuncT, IEnumerable
A function which when passed an object of T returns the child items.

See Also