Skip to main content

ITreeDataTemplate Interface

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Interface representing a template used to build hierarchical data.

public interface ITreeDataTemplate

Implements: IDataTemplate, ITemplate<object,Control>

Methods​

NameDescription
BindChildrenBinds the children of the specified item to a property on a target object.

BindChildren Method​

Binds the children of the specified item to a property on a target object.

public IDisposable BindChildren(Avalonia.AvaloniaObject target, Avalonia.AvaloniaProperty targetProperty, object item)

Parameters​

target Avalonia.AvaloniaObject

The target object.

targetProperty Avalonia.AvaloniaProperty

The target property.

item object

The item whose children should be bound.

Returns​

IDisposable

An IDisposable that can be used to remove the binding.