WPF Button content with '&' not accepting

前端 未结 4 1885
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  悲&欢浪女
    2020-12-10 11:07

    Markup files that are created in Microsoft Visual Studio are automatically saved in the Unicode UTF-8 file format, which means that most special characters, such as accent marks, are encoded correctly

    https://msdn.microsoft.com/en-us/library/aa970677(v=vs.100).aspx

提交回复
热议问题