FuncDataTemplate<T> Class

Summary

Builds a control for a piece of data of specified type.
graph BT Type-->Base0["FuncDataTemplate"] click Base0 "/api/Avalonia.Controls.Templates/FuncDataTemplate" Base0-->Base1["FuncTemplate<object, IControl>"] Base1-->Base2["object"] Type-.->Interface0["IRecyclingDataTemplate"] click Interface0 "/api/Avalonia.Controls.Templates/IRecyclingDataTemplate" Type-.->Interface1["IDataTemplate"] click Interface1 "/api/Avalonia.Controls.Templates/IDataTemplate" Type-.->Interface2["ITemplate<object, IControl>"] Type["FuncDataTemplate<T>"] class Type type-node

Syntax

public class FuncDataTemplate<T> : FuncDataTemplate, IRecyclingDataTemplate, IDataTemplate, 
    ITemplate<object, IControl>

Type Parameters

Name Description
T The type of the template's data.

Constructors

Fields

Name Constant Value Summary
Access
The default data template used in the case where no matching data template is found but AccessText should be used.
Inherited from FuncDataTemplate
static
Default
The default data template used in the case where no matching data template is found.
Inherited from FuncDataTemplate
static

Methods

Name Value Summary
Build(object, IControl) IControl
Creates or recycles a control to display the specified data.
Inherited from FuncDataTemplate
Match(object) bool
Checks to see if this data template matches the specified data.
Inherited from FuncDataTemplate