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