Windows icon indicating copy to clipboard operation
Windows copied to clipboard

Component Stuck When Changing System Theme and Following Theme

Open Jack251970 opened this issue 1 year ago • 2 comments

Describe the bug

If you use the user control based on the RadialGauge component, the window will be stuck when you change the system theme and let the window follow the theme.

https://github.com/user-attachments/assets/ee28f77c-2e60-4be7-b3eb-8c52130186b5

But if you use the RadialGauge component, the window works well.

https://github.com/user-attachments/assets/cef16def-e937-4ab7-837d-1f9be292ed5e

Steps to reproduce

1. Clone repo: https://github.com/Jack251970/CommunityComponentStuckDemo.
2. Open WinUIDemo\View\MainPage.xaml.
3. Use clock:AnalogClock.
4. Change system theme and the window will stuck.
5. Use control:RadialGauge.
6. Change system theme and the window will work well.

Expected behavior

.

Screenshots

.

Code Platform

  • [ ] UWP
  • [X] WinAppSDK / WinUI 3
  • [ ] Web Assembly (WASM)
  • [ ] Android
  • [ ] iOS
  • [ ] MacOS
  • [ ] Linux / GTK

Windows Build Number

  • [ ] Windows 10 1809 (Build 17763)
  • [ ] Windows 10 1903 (Build 18362)
  • [ ] Windows 10 1909 (Build 18363)
  • [ ] Windows 10 2004 (Build 19041)
  • [ ] Windows 10 20H2 (Build 19042)
  • [ ] Windows 10 21H1 (Build 19043)
  • [ ] Windows 10 21H2 (Build 19044)
  • [ ] Windows 10 22H2 (Build 19045)
  • [ ] Windows 11 21H2 (Build 22000)
  • [X] Other (specify)

Other Windows Build number

22631.4112

App minimum and target SDK version

  • [ ] Windows 10, version 1809 (Build 17763)
  • [ ] Windows 10, version 1903 (Build 18362)
  • [ ] Windows 10, version 1909 (Build 18363)
  • [ ] Windows 10, version 2004 (Build 19041)
  • [ ] Windows 10, version 2104 (Build 20348)
  • [ ] Windows 11, version 22H2 (Build 22000)
  • [X] Other (specify)

Other SDK version

10.0.22621.0

Visual Studio Version

2022

Visual Studio Build Number

17.11.2

Device form factor

Desktop

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item.

Jack251970 avatar Sep 07 '24 09:09 Jack251970

Microsoft.WindowsAppSDK version is 1.5.240627000 and CommunityToolkit.WinUI.Controls.RadialGauge version is 8.1.240821.

Jack251970 avatar Sep 07 '24 10:09 Jack251970

After a long time, the window with the user control based on the RadialGauge component will be set to the right theme. And the window can work well. But the waiting time is so long that I do think it seriously effect the interaction experience.

Jack251970 avatar Sep 07 '24 11:09 Jack251970