Button's content does not support access key
a-tk-by opened this issue · 0 comments
a-tk-by commented
Usage Information
3.2.2 / 11.0 / Win10
Description
If Button.Content property is a plain string value, and has underscore character, it renders as-is and is not used as a shortcut to invoke Button's command.
Reproduction Steps
Create Button with raw string contents having underscore.
Expected Behavior
Text contents shall be wrapped with AccessText as in 'Simple' theme instead of TextBlock.
Actual Behavior
Access character is ignored and is rendered as-is.
Regression?
No response
Known Workarounds
Put contents inside AccessText explicitely instead of putting plain text, but it produces boilerplate code.
Anything else?
No response
Could you help with a pull-request?
No
Is there an existing issue for this?
- I have searched the existing issues