Skip to main content

FuncTreeDataTemplate<T>(Func<T, Boolean>, Func<T, INameScope, Control>, Func<T, IEnumerable>) Constructor

Initializes a new instance of the FuncTreeDataTemplate(T) class.

Definition

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

public FuncTreeDataTemplate(
Func<T, bool> match,
Func<T, INameScope, Control> build,
Func<T, IEnumerable> itemsSelector
)

Parameters

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

See Also

Reference

FuncTreeDataTemplate(T) Class
FuncTreeDataTemplate(T) Overload
Avalonia.Controls.Templates Namespace