This is a migrated thread and some comments may be shown as answers.

CommandBarButton UseMnemonic Underscore in Text

1 Answer 81 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
fabrizio
Top achievements
Rank 1
Veteran
fabrizio asked on 19 Apr 2020, 11:30 AM
Good morning
I set UseMnemonic to True in CommandBarButton and added the ampersand to the text but the underscore is not seen. Why?
Thank you

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 21 Apr 2020, 03:26 PM

Hello Fabrizio,

You should set the ShowKeyboardCues property to true as well:

this.commandBarButton1.UseMnemonic = true;
this.commandBarButton1.Text = "&Edit";
this.commandBarButton1.ShowKeyboardCues = true;

I hope this helps. If you need further assistance do not hesitate to contact me.

Regards,
Nadya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
CommandBar
Asked by
fabrizio
Top achievements
Rank 1
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or