FuncDataTemplate<T>(Func<T, Boolean>, Func<T, INameScope, Control>, Boolean) Constructor
Initializes a new instance of the FuncDataTemplate(T) class.
Definition
Namespace: Avalonia.Controls.Templates
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public FuncDataTemplate(
Func<T, bool> match,
Func<T, INameScope, Control> build,
bool supportsRecycling = false
)
Public Sub New (
match As Func(Of T, Boolean),
build As Func(Of T, INameScope, Control),
Optional supportsRecycling As Boolean = false
)
new :
match : Func<'T, bool> *
build : Func<'T, INameScope, Control> *
?supportsRecycling : bool
(* Defaults:
let _supportsRecycling = defaultArg supportsRecycling false
*)
-> FuncDataTemplate
Parameters
- Func(T, Boolean)
- A function which determines whether the data template matches the specified data.
- Func(T, INameScope, Control)
- A function which when passed an object of T returns a control.
- Boolean (Optional)
- Whether the control can be recycled.
See Also
Reference
FuncDataTemplate(T) Class
FuncDataTemplate(T) Overload
Avalonia.Controls.Templates Namespace