WPF underline letter in label element

I have a label next to a text box that has a short key. The XAML for the shortcut is as follows:

<Label>Enter your _Name</Label>

If you press alt + N, then set the focus to the text box where you must enter your name.

I want the letter N to be underlined so that when the user sees the label, it looks like this:

Enter your N ame (the zero N is bold here, but I would like to emphasize :))

Thank you for your help!

+3
source share
1 answer

When you press the Alt key, it will be underlined underlined. You will see this behavior in any Windows application, as in a system-wide setup.

, Alt, Ease of Access " ".

+2

Source: https://habr.com/ru/post/1750348/


All Articles