From 0d3429389aa3c746d3f31fd923f69ef733e26c7e Mon Sep 17 00:00:00 2001 From: donandren Date: Tue, 28 Jun 2016 14:19:35 +0300 Subject: [PATCH] added new constructor with IWindowImpl parameter --- src/Avalonia.Controls/Window.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Window.cs b/src/Avalonia.Controls/Window.cs index 1000e3ef20..36bc87af02 100644 --- a/src/Avalonia.Controls/Window.cs +++ b/src/Avalonia.Controls/Window.cs @@ -89,7 +89,16 @@ namespace Avalonia.Controls /// Initializes a new instance of the class. /// public Window() - : base(PlatformManager.CreateWindow()) + : this(PlatformManager.CreateWindow()) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The window implementation. + public Window(IWindowImpl impl) + : base(impl) { _maxPlatformClientSize = this.PlatformImpl.MaxClientSize; }