microsoft / microsoft/microsoft-ui-xaml

TreeViewItem not selected when clicking on hidden chevron

Open
#11,518 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-TreeView bug team-Controls
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:

Image
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
  1. Add a TreeView with some items
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.