Search code examples
wpfsilverlightxamlescaping

How to use a literal curly brace "{" in XAML?


I need put in } and { in a XAML ConvertParameter without it being interpreted:

ConverterParameter = "{0}/{1}"

...which does not work. How to do this?


Solution

  • You can use:

    ConverterParameter = "{}{0}/{1}"
    

    More information can be found here.