Skip to main content

IDataTemplate Interface

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Interface representing a template used to build a control for a piece of data.

public interface IDataTemplate

Implements: ITemplate<object,Control>

Methods

NameDescription
MatchChecks to see if this data template matches the specified data.

Match Method

Checks to see if this data template matches the specified data.

public bool Match(object data)

Parameters

data object

The data.

Returns

bool

True if the data template can build a control for the data, otherwise false.