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