Skip to content

Accessibility: ListViewGroup Collapsible/Collapsed #3269

Closed

Description

@lonitra

Problem description:
A Collapsible ListViewGroup cannot be collapsed/expanded via keyboard only. Additionally, there is no Narrator announcement for the collapse/expand state change.

Expected behavior:
User should be able to collapse/expand a collapsible ListViewGroup via keyboard only, perhaps by pressing the SPACE bar.

Narrator should also announce the expand/collapse state change. Something similar to what the PropertyGrid does when something is collapsed or expanded:

image

image

Minimal repro:

  1. Create a winforms core app
  2. Add a ListView and ListViewGroup
  3. Set Collapsible = true for ListViewGroup
  4. Run app
  5. Try to expand/collapse ListViewGroup via keyboard only
  6. Start Narrator and expand/collapse through clicks

Note:
This stems from TODO in PR #3155

Activity

  1. added
    tenet-accessibility
    on May 12, 2020
  2. hughbe commented on May 12, 2020

    @hughbe
    Contributor

    IExpandCollapseProvider seems perfect for this

  3. RussKie commented on May 13, 2020

    @RussKie
    Contributor

    User should be able to collapse/expand a collapsible ListViewGroup via keyboard only, perhaps by pressing the SPACE bar.

    I think SPACE is more associated with "enact" (e.g. similar to ENTER, press button), for expand/collapse - ← → are typically used (e.g. in Windows Explorer or in a TreeView control), so I think we should use those.

    IExpandCollapseProvider seems perfect for this

    Interesting idea 👍 I let @M-Lipin to comment on this.

  4. added this to the 5.0 milestone on May 13, 2020
  5. weltkante commented on May 14, 2020

    @weltkante
    Contributor

    putting the suggestion in relation with other controls:

    • checkboxes and toggle buttons are activated by space
    • WPF has a standalone expand/collapse control ("expander") where the header can be focused as a whole and is activated (toggled) by space
    • treeview expand/collapse is activated by arrow keys, however you focus the item and cannot focus the expand glyph
  6. modified the milestones: 5.0, 6.0 on Sep 1, 2020
  7. modified the milestones: 6.0, 7.0 on Aug 27, 2021
  8. ghost added
    🚧 work in progress
    on Oct 11, 2021
  9. ghost removed this from the 7.0 milestone on Oct 20, 2021
  10. ghost removed
    🚧 work in progress
    on Oct 20, 2021
  11. Lydia-Shi commented on Oct 27, 2021

    @Lydia-Shi

    Verified this issue with .NET 7.0.100-alpha.1.21526.8 from latest main, this issue is fixed that Narrator announces ListViewGroup expand/collapse state when using mouse to expand/collapse the listViewGroup. And there is another #5906 in tracking for cannot announce states using keyboard.
    image

  12. ghost locked as resolved and limited conversation to collaborators on Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

tenet-accessibility

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions