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)
- C#
- VB
- F#
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
- 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