microsoft / microsoft/microsoft-ui-xaml
TreeViewItem not selected when clicking on hidden chevron
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
Describe the bug
When clicking on a leaf in a TreeView (i.e. a TreeViewItem without any children) the item is not selected if the user hits the area where the currently hidden expand/collapse chevron resides.
This can easily be seen in the WinUI gallery application:
Why is this important?
A user must be able to select items, it feels buggy if the tree does not react on some clicks.
Steps to reproduce the bug
- Add a TreeView with some items
- Try to select a leaf item without children and click on the area where the hidden chevron is
Actual behavior
No response
Expected behavior
No response
Screenshots
No response
NuGet package version
2.3.1
Windows version
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the WinUI Gallery application using a TreeView with a leaf item, then inspect the TreeViewItem selection and click handling around the hidden chevron area. Done means clicking that area selects the leaf item consistently, without changing selection behavior for items with children.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100