Open MarkIngramUK opened 5 years ago
This is a known limitation of XAML Islands v1 that should be addressed in WinUI 3 Islands.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Not stale.
Describe the bug When resizing the main window, the result of
WM_ERASEBKGND
is drawn before the Xaml Island.Steps to reproduce the bug
Steps to reproduce the behavior:
WM_SIZE
(orWM_SIZING
)Expected behavior To not see the result of
WM_ERASEBKGND
(i.e. WndClassExW.hbrBackground) before the Xaml Island renders.Screenshots The red is from
wc.hbrBackground = CreateSolidBrush(RGB(255, 0, 0));
, the blue is from the Xaml Island root content.Version Info 1903
NuGet package version: N/A
Additional context You can largely hide the issue by specifying
WS_EX_NOREDIRECTIONBITMAP
on the main window, but it would be good if the Xaml Island rendered on resize, as it would make the resize seem smoother.