Open AArnott opened 1 year ago
Yeah I'm afraid we don't yet have an API to surface that setting inside of Avalonia.
At some point we might need to have some alternative of SystemParameters from WPF. Unfortunately, most of the platforms don't have as many parameters available for apps, like Windows does.
I wonder if some use of Microsoft.Extensions.Configuration might be useful to back the SystemParameters class. On Windows, it could include a data source that is the OS itself. For OSs that don't define as many of these parameters, end users or app developers could still control these settings by way of an appsettings.json or user settings.json file.
Describe the bug
Windows used to always underline keyboard shortcut keys. Recent version have that behavior off by default, but it can be activated as described below. Most apps honor this setting, but Avalonia Labels do not.
To Reproduce
Configure Windows to always underline keyboard shortcut keys:
Given a window with this xaml:
Run the program
Expected behavior
The "t" in "Select textbox" should be underlined immediately.
Screenshots
Without the alt key pressed:
With the alt key pressed:
Desktop (please complete the following information):