FuncDataTemplateT(FuncT, Boolean, FuncT, Control, Boolean) Constructor
Namespace: Avalonia.Controls.TemplatesAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public FuncDataTemplate(
Func<T, bool> match,
Func<T, Control> build,
bool supportsRecycling = false
)
Public Sub New (
match As Func(Of T, Boolean),
build As Func(Of T, Control),
Optional supportsRecycling As Boolean = false
)
new :
match : Func<'T, bool> *
build : Func<'T, Control> *
?supportsRecycling : bool
(* Defaults:
let _supportsRecycling = defaultArg supportsRecycling false
*)
-> FuncDataTemplate
Parameters
- match FuncT, Boolean
-
A function which determines whether the data template matches the specified data.
- build FuncT, Control
-
A function which when passed an object of T returns a control.
- supportsRecycling Boolean (Optional)
- Whether the control can be recycled.