Skip to main content

FuncTreeDataTemplate<T> Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia

A template used to build hierarchical data.

public class FuncTreeDataTemplate<T>

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

Constructors

NameDescription
FuncTreeDataTemplate<T> (2 overloads)No summary available.

FuncTreeDataTemplate<T> overloads

FuncTreeDataTemplate<T> Constructor

public FuncTreeDataTemplate<T>(Func<T, bool> match, Func<T, Avalonia.Controls.INameScope, Avalonia.Controls.Control> build, Func<T, System.Collections.IEnumerable> itemsSelector)
Parameters

match Func<T, bool>

build Func<T, Avalonia.Controls.INameScope, Avalonia.Controls.Control>

itemsSelector Func<T, System.Collections.IEnumerable>

FuncTreeDataTemplate<T> Constructor

public FuncTreeDataTemplate<T>(Func<T, Avalonia.Controls.INameScope, Avalonia.Controls.Control> build, Func<T, System.Collections.IEnumerable> itemsSelector)
Parameters

build Func<T, Avalonia.Controls.INameScope, Avalonia.Controls.Control>

itemsSelector Func<T, System.Collections.IEnumerable>

Methods

NameDescription
BindChildrenInherited from FuncTreeDataTemplate.
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.

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.