FuncTreeDataTemplate(Type, FuncObject, INameScope, Control, FuncObject, IEnumerable) Constructor

Initializes a new instance of the FuncTreeDataTemplate class.

Definition

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

Parameters

type  Type
The type of data which the data template matches.
build  FuncObject, INameScope, Control
A function which when passed an object of type returns a control.
itemsSelector  FuncObject, IEnumerable
A function which when passed an object of type returns the child items.

See Also