-
Notifications
You must be signed in to change notification settings - Fork 803
Open
Labels
area-IslandsXaml Islands featureXaml Islands featurebugSomething isn't workingSomething isn't workingteam-ReachIssue for the Reach teamIssue for the Reach team
Description
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:
- Set the Xaml Island HWND size to be the full client rect of main window as a result of
WM_SIZE(orWM_SIZING) - Resize the main window with the mouse
- Example available at https://github.com/MarkIngramUK/XamlIslands
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
| Windows 10 version | Saw the problem? |
|---|---|
| Insider Build (xxxxx) | |
| May 2019 Update (18362) | Yes |
| October 2018 Update (17763) | Yes |
| April 2018 Update (17134) | |
| Fall Creators Update (16299) | |
| Creators Update (15063) | |
| Anniversary Update (14393) |
| Device form factor | Saw the problem? |
|---|---|
| Desktop | Yes |
| Mobile | |
| Xbox | |
| Surface Hub | |
| IoT |
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-IslandsXaml Islands featureXaml Islands featurebugSomething isn't workingSomething isn't workingteam-ReachIssue for the Reach teamIssue for the Reach team