Skip to main content

FuncTreeDataTemplate(Func<Object, Boolean>, 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(
Func<Object?, bool> match,
Func<Object?, INameScope, Control?> build,
Func<Object?, IEnumerable> itemsSelector
)

Parameters

  Func(Object, Boolean)
A function which determines whether the data template matches the specified data.
  Func(Object, INameScope, Control)
A function which when passed a matching object returns a control.
  Func(Object, IEnumerable)
A function which when passed a matching object returns the child items.

See Also

Reference

FuncTreeDataTemplate Class
FuncTreeDataTemplate Overload
Avalonia.Controls.Templates Namespace