microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.34k stars 676 forks source link

Proposal: support keyboard shortcuts to expand/collapse children in TreeView #9924

Open chausner opened 1 month ago

chausner commented 1 month ago

Proposal: support keyboard shortcuts to expand/collapse children in TreeView

Summary

Add support to the TreeView control to expand/recursively expand/collaps the selected node when the +/*/- keys are pressed.

Rationale

The TreeView controls in WPF (and probably also WinForms/Win32) allow the following keyboard shortcuts when an item is selected in a TreeView:

These shortcuts have been in use for a long time and supported across applications. It would be desirable that WinUI continues to support them. Especially the shortcut to recursively expand nodes is sometimes very useful because it is not available via the mouse or touch (as far as I know).

Permik commented 1 month ago

UX regressions from win32 seem like a very low priority for the team, so don't hold your breath 😅 ref: #8953