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