xaml - 如何在 XAML 文本字符串中显示一个符号?

标签 xaml xamarin xamarin.forms

我想像这样添加一个符号:

<Label Text="Phrase & Meaning Visible" />

这行不通,所以我尝试用\分隔,但也行不通。有人对我如何做到这一点有任何建议吗?

最佳答案

其实这个问题不是关于XAML的,它只是一个纯XML的问题。 XML中有些字符需要转义,&的正确转义是&

关于xaml - 如何在 XAML 文本字符串中显示一个符号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56354020/

相关文章:

xaml - 在 XAML 中绘制元素之间的连接/路径

c# - C#WPF动态创建控件组WPF

c# - 替换Azure存储中的内容

c# - Xamarin.Forms 属性未保存在 Android 上的 Release 中

xamarin.forms - Xamarin Release Build 出现错误,无法解析 System.Void Xamarin.Forms.Log::Warning(System.String,System.String)

wpf - 在 ConverterParameter 中使用字典中的字符串

c# - 如何从 C# Xamarin 中的 HTTP post 获取数据?

c# - 如何将应用程序设置绑定(bind)到 TableView 中已编辑的 EntryCell?

c# - Xamarin 表单选择器绑定(bind)

c# - Xamarin UI 测试 "1 is not a supported code page."