A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
877 B

// -----------------------------------------------------------------------
// <copyright file="IDataTemplate.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Controls.Templates
{
/// <summary>
/// Interface representing a template used to build a control for a piece of data.
/// </summary>
public interface IDataTemplate : ITemplate<object, IControl>
{
/// <summary>
/// Checks to see if this data template matches the specified data.
/// </summary>
/// <param name="data">The data.</param>
/// <returns>
/// True if the data template can build a control for the data, otherwise false.
/// </returns>
bool Match(object data);
}
}