From 0a65816ae1fe37dcbe585469235f98449b1f2d25 Mon Sep 17 00:00:00 2001 From: Connor Laderer Date: Wed, 24 May 2017 22:19:14 -0400 Subject: [PATCH] Corrected where statement because if its provided, it doesn't need a parameterless constructor --- src/Avalonia.Controls/AppBuilderBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/AppBuilderBase.cs b/src/Avalonia.Controls/AppBuilderBase.cs index 13e9c108e1..30ef7dc427 100644 --- a/src/Avalonia.Controls/AppBuilderBase.cs +++ b/src/Avalonia.Controls/AppBuilderBase.cs @@ -136,7 +136,7 @@ namespace Avalonia.Controls /// Instance of type TMainWindow to use when starting the app /// A delegate that will be called to create a data context for the window (optional). public void Start(TMainWindow mainWindow, Func dataContextProvider = null) - where TMainWindow : Window, new() + where TMainWindow : Window { Setup(); BeforeStartCallback(Self);