WPF Button content with '&' not accepting

前端 未结 4 1886
伪装坚强ぢ
伪装坚强ぢ 2020-12-10 10:38

I am creating and with content \'Save & Add\'. I write it in XAML, but the symbol \'&\' is not accepting. What is the reason for that. How can I do that?

4条回答
  •  旧时难觅i
    2020-12-10 11:12

    Use & instead of &.

    You might find this article of some use - How to: Use Special Characters in XAML

提交回复
热议问题