FuncTreeDataTemplate Class
Definition
A template used to build hierarchical data.
public class FuncTreeDataTemplate
Constructors
| Name | Description |
|---|---|
| FuncTreeDataTemplate (2 overloads) | No summary available. |
FuncTreeDataTemplate overloads
FuncTreeDataTemplate Constructor
public FuncTreeDataTemplate(Func<object, bool> match, Func<object, Avalonia.Controls.INameScope, Avalonia.Controls.Control> build, Func<object, System.Collections.IEnumerable> itemsSelector)
Parameters
match Func<object, bool>
build Func<object, Avalonia.Controls.INameScope, Avalonia.Controls.Control>
itemsSelector Func<object, System.Collections.IEnumerable>
FuncTreeDataTemplate Constructor
public FuncTreeDataTemplate(Type type, Func<object, Avalonia.Controls.INameScope, Avalonia.Controls.Control> build, Func<object, System.Collections.IEnumerable> itemsSelector)
Parameters
type Type
build Func<object, Avalonia.Controls.INameScope, Avalonia.Controls.Control>
itemsSelector Func<object, System.Collections.IEnumerable>
Methods
| Name | Description |
|---|---|
| BindChildren | No summary available. |
| Build | Creates or recycles a control to display the specified data. Inherited from FuncDataTemplate. |
| Match | Checks to see if this data template matches the specified data. Inherited from FuncDataTemplate. |
BindChildren Method
public IDisposable BindChildren(Avalonia.AvaloniaObject target, Avalonia.AvaloniaProperty targetProperty, object item)
Parameters
target Avalonia.AvaloniaObject
targetProperty Avalonia.AvaloniaProperty
item object
Returns
IDisposable
Fields
| Name | Description |
|---|---|
| Access | The default data template used in the case where no matching data template is found but Avalonia.Controls.Primitives.AccessText should be used. Inherited from FuncDataTemplate. |
| Default | The default data template used in the case where no matching data template is found. Inherited from FuncDataTemplate. |