CommunityToolkit / CommunityToolkit/Windows

RadialGauge Stuck When Changing System Theme and Following Theme

Aperta
#501 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug components::controls::radialgauge ux 🖌️
Lingua principale
C#
Stelle
1.1k
Fork
166
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

```text
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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with the reproduction repository and WinUIDemo\View\MainPage.xaml, comparing the AnalogClock user control with the RadialGauge control. Reproduce the issue by changing the system theme while the window follows the theme. Done means the AnalogClock scenario no longer causes the window to become stuck under the reported WinAppSDK and Windows versions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
desktop
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.