FuncDataTemplate(Func<Object, Boolean>, 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(
Func<Object?, bool> match,
Func<Object?, INameScope, Control?> build,
bool supportsRecycling = false
)
Public Sub New (
match As Func(Of Object, Boolean),
build As Func(Of Object, INameScope, Control),
Optional supportsRecycling As Boolean = false
)
new :
match : Func<Object, bool> *
build : Func<Object, INameScope, Control> *
?supportsRecycling : bool
(* Defaults:
let _supportsRecycling = defaultArg supportsRecycling false
*)
-> FuncDataTemplate
Parameters
- Func(Object, Boolean)
- A function which determines whether the data template matches the specified data.
- Func(Object, INameScope, Control)
- A function which returns a control for matching data.
- Boolean (Optional)
- Whether the control can be recycled.
See Also
Reference
FuncDataTemplate Class
FuncDataTemplate Overload
Avalonia.Controls.Templates Namespace