Summary
Initializes a new instance of the
FuncDataTemplate
class.
- Namespace
- Avalonia
.Controls .Templates - Containing Type
- FuncDataTemplate
Syntax
public FuncDataTemplate(Func<object, bool> match, Func<object, INameScope, IControl> build, bool supportsRecycling = false)
Parameters
Name | Type | Description |
---|---|---|
match | Func |
A function which determines whether the data template matches the specified data. |
build | Func |
A function which returns a control for matching data. |
supportsRecycling | bool | Whether the control can be recycled. |
Return Value
Type | Description |
---|---|
void |