tags:

views:

621

answers:

3

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?

+6  A: 

Use & instead of &.

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

Ben Griswold
A: 

From Wikipedia:

Unlike traditional HTML with its large range of character entity references, in XML there are only five predefined character entity references. These are used to escape characters that are markup sensitive in certain contexts:

  • & → & (ampersand, U+0026)
  • &lt; → < (less-than sign, U+003C)
  • &gt; → > (greater-than sign, U+003E)
  • &quot; → " (quotation mark, U+0022)
  • &apos; → ' (apostrophe, U+0027)
Cameron MacFarland
A: 

You might need to escape it as "&amp;". See this link.

Peter McMahan