Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 382
Mediator Avatar asked Jun 10 '11 21:06

Mediator


People also ask

What is the purpose of {} squiggly braces in Java?

Different programming languages have various ways to delineate the start and end points of a programming structure, such as a loop, method or conditional statement. For example, Java and C++ are often referred to as curly brace languages because curly braces are used to define the start and end of a code block.

How do you type curly braces in Visual Studio?

There are several ways in which you could type curly braces. If it is a windows keyboard you can do (alt+123) for '{' and (alt+125) for '}'. On a Mac the shortcuts are (shift + alt + 8) for '{' and (shift + alt + 9) for '}'.

What is curly bracket syntax?

Noun. curly-bracket language (plural curly-bracket languages) (programming) A programming language whose syntax uses curly brackets to enclose blocks, such as C, C++, Java, or C#.


1 Answers

You can use:

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

More information can be found here.

like image 78
CodeNaked Avatar answered Sep 27 '22 18:09

CodeNaked