Skip to main content

FuncTreeDataTemplate Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

A template used to build hierarchical data.

public class FuncTreeDataTemplate

Inheritance: FuncTemplate<object,Control> -> FuncDataTemplate -> FuncTreeDataTemplate

Implements: IDataTemplate, ITemplate<object,Control>, ITreeDataTemplate

Constructors​

NameDescription
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​

NameDescription
BindChildrenNo summary available.
BuildCreates or recycles a control to display the specified data. Inherited from FuncDataTemplate.
MatchChecks 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​

NameDescription
AccessThe 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.
DefaultThe default data template used in the case where no matching data template is found. Inherited from FuncDataTemplate.