Skip to main content

FuncDataTemplate(Type, Func<Object, INameScope, Control>, Boolean) Constructor

Initializes a new instance of the FuncDataTemplate class.

Definition

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

public FuncDataTemplate(
Type type,
Func<Object?, INameScope, Control?> build,
bool supportsRecycling = false
)

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.
  Boolean  (Optional)
Whether the control can be recycled.

See Also

Reference

FuncDataTemplate Class
FuncDataTemplate Overload
Avalonia.Controls.Templates Namespace