Disable WPF label accelerator key (text underscore is missing)

前端 未结 4 2062
逝去的感伤
逝去的感伤 2020-11-27 06:40

I am setting the .Content value of a Label to a string that contains underscores; the first underscore is being interpreted as an accelerator key.

Witho

4条回答
  •  春和景丽
    2020-11-27 06:50

    If you use a TextBlock as the Content of the Label, its Text will not absorb underscores.

提交回复
热议问题