質問

I don't know what is "&" called, but I want to add to a WPF menu item like this &Search so when we hit Alt, a small line will appear under "S".

See picture below:

enter image description here

役に立ちましたか?

解決

This is called an accelerator key. In WPF it's used by the _ character prefix.

For example: _Search, Hel_p Favorites, etc.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top