From 645d76c7257e6c8adb0262d345aeda31ca6e8567 Mon Sep 17 00:00:00 2001 From: Michael Mayfield Date: Tue, 23 Feb 2016 22:38:25 +0000 Subject: [PATCH] Improve rendering when resizing --- src/Perspex.Application/Application.cs | 2 +- src/Perspex.Layout/LayoutManager.cs | 2 ++ src/Windows/Perspex.Win32/WindowImpl.cs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Perspex.Application/Application.cs b/src/Perspex.Application/Application.cs index e904207b18..39b02206b8 100644 --- a/src/Perspex.Application/Application.cs +++ b/src/Perspex.Application/Application.cs @@ -167,7 +167,7 @@ namespace Perspex .Bind().ToConstant(InputManager) .Bind().ToTransient() .Bind().ToConstant(_styler) - .Bind().ToTransient() + .Bind().ToSingleton() .Bind().ToTransient(); } diff --git a/src/Perspex.Layout/LayoutManager.cs b/src/Perspex.Layout/LayoutManager.cs index 38f7d2192c..b39da924b3 100644 --- a/src/Perspex.Layout/LayoutManager.cs +++ b/src/Perspex.Layout/LayoutManager.cs @@ -99,6 +99,8 @@ namespace Perspex.Layout stopwatch.Stop(); _log.Information("Layout pass finised in {Time}", stopwatch.Elapsed); } + + _queued = false; } /// diff --git a/src/Windows/Perspex.Win32/WindowImpl.cs b/src/Windows/Perspex.Win32/WindowImpl.cs index d34ef57199..3b8fd6a802 100644 --- a/src/Windows/Perspex.Win32/WindowImpl.cs +++ b/src/Windows/Perspex.Win32/WindowImpl.cs @@ -585,7 +585,7 @@ namespace Perspex.Win32 lpfnWndProc = _wndProcDelegate, hInstance = Marshal.GetHINSTANCE(GetType().Module), hCursor = DefaultCursor, - hbrBackground = (IntPtr)5, + hbrBackground = IntPtr.Zero, lpszClassName = _className, };