Browse Source

Merge pull request #573 from donandren/wnd

added new constructor with IWindowImpl parameter
pull/574/head
Steven Kirk 10 years ago
committed by GitHub
parent
commit
7bc9e66b20
  1. 11
      src/Avalonia.Controls/Window.cs

11
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;
}

Loading…
Cancel
Save