question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apps with a custom background flash a white background for a couple frames on some devices

See original GitHub issue
  • .NET Core Version: (e.g. 3.0 Preview1, or daily build number, use dotnet --info) 6.0.100
  • Windows version: (winver) Windows 11 10.0.22000
  • Does the bug reproduce also in WPF for .NET Framework 4.8?:
  • Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc…)? If yes, please file the issue via the instructions here.
  • Security issues and bugs should be reported privately, learn more via our responsible disclosure guidelines.

Problem description: Apps with a custom background flash a white background for a couple frames on some devices (previously asked Stack overflow to no avail, pointed to likely a software issue) Actual behavior: Window flashes white before fully loading. Expected behavior: Window opens with the correct background color instantly Minimal repro:

dotnet new wpf

edit MainWindow.xaml to have a background attribute

dotnet build

and run the app.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
batzencommented, Dec 21, 2021

This also started to happen on my machine like a week ago. It’s does not seem to be isolated to WPF as it also happens with Edge. See (increased gif frame delay to 250 ms to make it really visible): window_white_flash

1reaction
batzencommented, Mar 3, 2023

@torum As i already wrote above, this is not a pure WPF issue. The underlying problem is caused by Windows itself. ControlzEx has code to mitigate the white flash and the resize flickering.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Best Apps to Add White Background to Photos in 2023
1. YouCam Makeup: Best Photo Background Changer App · Make Background White Easily · Add Colorful Backgrounds · Add Trendy Photo Backgrounds ·...
Read more >
6 Apps to Make the Background of a Picture White
Some popular photo editing apps that can change the photo background to white include Adobe Photoshop Express, Lightroom, Canva, Snapseed, and Background Eraser ......
Read more >
40 Best Photo Editing Apps for iOS and Android in 2023 ...
Here's our curated list of the 40 best photo editing apps for photographers to touch up their images on Android or iPhone.
Read more >
Change Image Background Online Free
Change background of photo online in 5 seconds with Fotor's AI background changer. Easily change image background to transparent, solid colors, or photos....
Read more >
Best Apps to Change the Background of a Photo (Top 7 in ...
Automatic Background Changer; Simple Background Changer; Superimpose; Apowersoft Background Eraser; Background Eraser; LightX Editor; Facetune ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found