microsoft-ui-xaml: UWP apps freeze for few seconds when system theme/accent color changes
Describe the bug All UWP apps seem to be affected by this bug, some of them less (I guess simpler UI tree) and some more. Whenever the system theme changes, the apps will freeze for few seconds (1-5?). Something interesting that we found out while researching about this behavior:
- The freeze affects the app in any case, even if it explicitly sets a
RequestedThemeinApp. - Resizing the app window while it is frozen seems to restore the app usability.
- Changing
RequestedThemefrom code behind is instant, and it works so nicely that I’ve added animations for that:
Steps to reproduce the bug
Steps to reproduce the behavior:
- Go to System settings > Personalization > Colors
- Change theme or accent color
- Try to interact with a UWP app, Settings included.
Expected behavior
The app won’t freeze, and the user can continue to interact with it. This is specially important if they have automatic theme/accent color switch based on current system wallpaper, and they have a wallpaper playlist enabled.
Screenshots
Version Info
| Windows 10 version | Saw the problem? |
|---|---|
| Insider Build (xxxxx) | Yes |
| May 2020 Update (19041) | Yes |
| November 2019 Update (18363) | Yes |
| May 2019 Update (18362) | Yes |
| October 2018 Update (17763) | Yes |
| April 2018 Update (17134) | Yes |
| Fall Creators Update (16299) | Yes |
| Creators Update (15063) | Yes |
| Device form factor | Saw the problem? |
|---|---|
| Desktop | Yes |
| Xbox | |
| Surface Hub | |
| IoT |
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 6
- Comments: 32 (18 by maintainers)
@jevansaks Windows 10 grinds to a halt when changing theme. I suspect that’s the underlying issue that @FrayxRulez is referring to here. Agree though, this is more of an OS issue than anything MUX related.
It’s not very productive to even talk about theme change performance relative to the app when the entire system is locked up.
This repros everywhere, even in a vm, and is well known, so not sure why you need traces from us?