FuncTreeDataTemplate(FuncObject, Boolean, FuncObject, INameScope, Control, FuncObject, IEnumerable) Constructor
Namespace: Avalonia.Controls.TemplatesAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public FuncTreeDataTemplate(
Func<Object?, bool> match,
Func<Object?, INameScope, Control?> build,
Func<Object?, IEnumerable> itemsSelector
)
Public Sub New (
match As Func(Of Object, Boolean),
build As Func(Of Object, INameScope, Control),
itemsSelector As Func(Of Object, IEnumerable)
)
new :
match : Func<Object, bool> *
build : Func<Object, INameScope, Control> *
itemsSelector : Func<Object, IEnumerable> -> FuncTreeDataTemplate
Parameters
- match FuncObject, Boolean
-
A function which determines whether the data template matches the specified data.
- build FuncObject, INameScope, Control
-
A function which when passed a matching object returns a control.
- itemsSelector FuncObject, IEnumerable
-
A function which when passed a matching object returns the child items.