microsoft / microsoft/microsoft-ui-xaml
Incorrect display after clicking the mouse on SelectorBar
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
### Describe the bug
The button style will remain in the pressed state
### Why is this important?
This is not the expected behavior, and it looks unsightly
### Steps to reproduce the bug
1. Click any button on the SelectorBar with the mouse and hold it down
2. Drag the cursor to any location
https://github.com/user-attachments/assets/7f53402b-d13e-479c-adb0-0226ed876d73
### Actual behavior
Finally, you will see that the button color remains in the pressed state
### Expected behavior
When the mouse pointer is moved away, the button returns to its unpressed state
Similar to Windows settings
https://github.com/user-attachments/assets/91ee219f-b674-4ddb-af55-1cdba7d8df07
### Screenshots
_No response_
### NuGet package version
None
### Windows version
Windows Insider Build (xxxxx)
### Additional context
_No response_
Contributor guide
Research direction
Start at the SelectorBar control entry point and reproduce the issue by holding a button and dragging the mouse away. Trace the pressed-state behavior during pointer movement, then verify that the button returns to its unpressed appearance when the pointer leaves.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100