Search code examples
wpfxaml

How can I escape character '&' in Path in XAML?


How can I escape character '&' in Path in XAML?

I need to escape (using XML entities) certain characters that are special to the XML language definition.


Solution

  • Try '&amp'. XAML escape character entities. Or '&#x26'. MSDN escape characters. Ascii Table (from asciitable.com)