Reputation: 24572
I am trying to add an ampersand like this:
<Label Text="Phrase & Meaning Visible" />
This doesn't work so I tried to delimit with a \ and that also does not work. Does anyone have any suggestions on how I can do this?
Upvotes: 6
Views: 5200
Reputation: 828
Actually this question is not about XAML, it's just a pure XML question. Some characters need to be escaped in XML, the correct escaping of &
is &
Upvotes: 19
Reputation: 860
Taken this with thanks from the following blog post. Special Symbols in XAML
For Ampersand sign <Label Text="&"/> For less than sign <Label Text="<"> For greater than sign <Label Text=">"/> For double quotes <Label Text="""/>
Upvotes: 10