20

In data-binding you can use multi-binding.. and with multi-binding you can combine properties such {}{0} {1}. My question is what mean the first {} ? I am not talking about {0} which is used to select which property to use..

Thanks.

Heinzi
  • 167,459
  • 57
  • 363
  • 519
Rushino
  • 9,415
  • 16
  • 53
  • 93

1 Answers1

29

It's the markup extension {} escape sequence:

The escape sequence ({}) is used so that an open brace ({) can be used as a literal character in XAML.

To elaborate: In XAML markup, { and } are special characters: For example, writing {Binding} creates a Binding object. You, however, want to set the property StringFormat to the literal value {0} {1}. Thus, you prefix your property value with {} to tell the parser: "The following braces are just braces and do not carry any special meaning."

Heinzi
  • 167,459
  • 57
  • 363
  • 519