Summary
Initializes a new instance of the
FuncTreeDataTemplate
class.
- Namespace
- Avalonia
.Controls .Templates - Containing Type
- FuncTreeDataTemplate
Syntax
public FuncTreeDataTemplate(Type type, Func<object, INameScope, IControl> build, Func<object, IEnumerable> itemsSelector)
Parameters
Name | Type | Description |
---|---|---|
type | Type | The type of data which the data template matches. |
build | Func |
A function which when passed an object of type returns a control. |
itemsSelector | Func |
A function which when passed an object of type returns the child items. |
Return Value
Type | Description |
---|---|
void |