WPF按钮的内容带有'&'不接受 [英] WPF Button content with '&' not accepting

查看:54
本文介绍了WPF按钮的内容带有'&'不接受的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建,内容为保存并保存。加'。我是用XAML编写的,但是符号&不被接受。这是什么原因。我该怎么办?

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?

推荐答案

使用& amp; 代替&。

Use & instead of &.

您可能会发现这篇文章有些用处-如何:在XAML中使用特殊字符

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

这篇关于WPF按钮的内容带有'&'不接受的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆