Browse Source

added new constructor with IWindowImpl parameter

donandren 9 years ago
parent
commit
0d3429389a
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/Avalonia.Controls/Window.cs

+ 10 - 1
src/Avalonia.Controls/Window.cs

@@ -89,7 +89,16 @@ namespace Avalonia.Controls
         /// Initializes a new instance of the <see cref="Window"/> class.
         /// </summary>
         public Window()
-            : base(PlatformManager.CreateWindow())
+            : this(PlatformManager.CreateWindow())
+        {
+        }
+
+        /// <summary>
+        /// Initializes a new instance of the <see cref="Window"/> class.
+        /// </summary>
+        /// <param name="impl">The window implementation.</param>
+        public Window(IWindowImpl impl)
+            : base(impl)
         {
             _maxPlatformClientSize = this.PlatformImpl.MaxClientSize;
         }