Browse Source

Improve rendering when resizing

pull/447/head
Michael Mayfield 10 years ago
parent
commit
645d76c725
  1. 2
      src/Perspex.Application/Application.cs
  2. 2
      src/Perspex.Layout/LayoutManager.cs
  3. 2
      src/Windows/Perspex.Win32/WindowImpl.cs

2
src/Perspex.Application/Application.cs

@ -167,7 +167,7 @@ namespace Perspex
.Bind<IInputManager>().ToConstant(InputManager)
.Bind<IKeyboardNavigationHandler>().ToTransient<KeyboardNavigationHandler>()
.Bind<IStyler>().ToConstant(_styler)
.Bind<ILayoutManager>().ToTransient<LayoutManager>()
.Bind<ILayoutManager>().ToSingleton<LayoutManager>()
.Bind<IRenderQueueManager>().ToTransient<RenderQueueManager>();
}

2
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;
}
/// <inheritdoc/>

2
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,
};

Loading…
Cancel
Save