// -----------------------------------------------------------------------
//
// Copyright 2015 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex.Controls.Templates
{
using System;
using Perspex.Controls.Primitives;
using Styling;
///
/// A template for a .
///
/// The type of the lookless control.
public class ControlTemplate : ControlTemplate where T : ITemplatedControl
{
///
/// Initializes a new instance of the class.
///
/// The build function.
public ControlTemplate(Func build)
: base(x => build((T)x))
{
}
}
}