문제

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