Label doesn't display “_” character

前端 未结 7 1862
别跟我提以往
别跟我提以往 2021-01-01 09:10

My Label.Content in WPF doesn\'t display the first occurrence of \"_\" character. Why?



        
7条回答
  •  清歌不尽
    2021-01-01 09:24

    In WPF there is an attribute called RecognizesAccessKey, try to change it to false. If you use RadioButton be aware that there is also label behind, and in the RadioButton template to disable access key recognition you must set RecognizesAccessKey="False" on template ContentPresenter. Then this is disabled, or label is replaced with something else I don't remember now.

提交回复
热议问题