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.
 
 
 

25 lines
898 B

// -----------------------------------------------------------------------
// <copyright file="ITemplate`2.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Controls.Templates
{
/// <summary>
/// Creates a control based on a parameter.
/// </summary>
/// <typeparam name="TParam">The type of the parameter.</typeparam>
/// <typeparam name="TControl">The type of control.</typeparam>
public interface ITemplate<TParam, TControl> where TControl : IControl
{
/// <summary>
/// Creates the control.
/// </summary>
/// <param name="param">The parameter.</param>
/// <returns>
/// The created control.
/// </returns>
TControl Build(TParam param);
}
}