UWP C# XAML how to add shortcuts for accessing standard buttons

CyberSteve 136 Reputation points
2021-05-20T01:26:58.687+00:00

In the past you could just put an & sign before the character which indicated the uuser would be able to press Alt + whatever the character was following the &. For example, "C&lose". This doesn't seem to work in UWP. So how do you quickly create a keyboard shortcut for buttons and other elements?

Also, how do you designate a button to be the default wen there are more than one? This should be so obvious, but I'm discovering lots of things in UWP/Xaml that aren't so obvious.

Developer technologies | Universal Windows Platform (UWP)
0 comments No comments

2 answers

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    9 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.