Summary
Initializes a new instance of the
FuncDataTemplate<T>
class.
- Namespace
- Avalonia
.Controls .Templates - Containing Type
- FuncDataTemplate
<T>
Syntax
public FuncDataTemplate(Func<T, INameScope, IControl> build, bool supportsRecycling = false)
Parameters
Name | Type | Description |
---|---|---|
build | Func |
A function which when passed an object of T returns a control. |
supportsRecycling | bool | Whether the control can be recycled. |
Return Value
Type | Description |
---|---|
void |