Skip to main content

FuncTreeDataTemplate(Type, Func<Object, INameScope, Control>, Func<Object, IEnumerable>) Constructor

Initializes a new instance of the FuncTreeDataTemplate class.

Definition

Namespace: Avalonia.Controls.Templates
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public FuncTreeDataTemplate(
Type type,
Func<Object?, INameScope, Control> build,
Func<Object?, IEnumerable> itemsSelector
)

Parameters

  Type
The type of data which the data template matches.
  Func(Object, INameScope, Control)
A function which when passed an object of type returns a control.
  Func(Object, IEnumerable)
A function which when passed an object of type returns the child items.

See Also

Reference

FuncTreeDataTemplate Class
FuncTreeDataTemplate Overload
Avalonia.Controls.Templates Namespace