FuncTreeDataTemplate<T>(Func<T, INameScope, Control>, Func<T, IEnumerable>) Constructor
Initializes a new instance of the FuncTreeDataTemplate(T) class.
Definition
Namespace: Avalonia.Controls.Templates
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public FuncTreeDataTemplate(
Func<T, INameScope, Control> build,
Func<T, IEnumerable> itemsSelector
)
Public Sub New (
build As Func(Of T, INameScope, Control),
itemsSelector As Func(Of T, IEnumerable)
)
new :
build : Func<'T, INameScope, Control> *
itemsSelector : Func<'T, IEnumerable> -> FuncTreeDataTemplate
Parameters
- Func(T, INameScope, Control)
- A function which when passed an object of T returns a control.
- Func(T, IEnumerable)
- A function which when passed an object of T returns the child items.
See Also
Reference
FuncTreeDataTemplate(T) Class
FuncTreeDataTemplate(T) Overload
Avalonia.Controls.Templates Namespace