Browse Source

Relax constraint on ITemplate<T>.

pull/7477/head
Steven Kirk 4 years ago
parent
commit
f71893e42d
  1. 4
      src/Avalonia.Controls/Templates/ITemplate`1.cs

4
src/Avalonia.Controls/Templates/ITemplate`1.cs

@ -6,7 +6,7 @@ namespace Avalonia.Controls
/// Creates a control.
/// </summary>
/// <typeparam name="TControl">The type of control.</typeparam>
public interface ITemplate<TControl> : ITemplate where TControl : IControl
public interface ITemplate<TControl> : ITemplate where TControl : IControl?
{
/// <summary>
/// Creates the control.
@ -16,4 +16,4 @@ namespace Avalonia.Controls
/// </returns>
new TControl Build();
}
}
}

Loading…
Cancel
Save