Louis Rhys
Louis Rhys

Reputation: 35637

What does the sign {} mean in this xaml code?

From BindingBase.StringFormat Property

<MultiBinding  StringFormat="{}{0} -- Now only {1:C}!">

What does the first {} mean? Is it a way to tell that { } which is normally syntax characters in XAML, will be treated as normal character? How exactly do we use this?

Upvotes: 4

Views: 130

Answers (1)

Maheep
Maheep

Reputation: 5605

Look at this article on MSDN {} Escape Sequence / Markup Extension which says

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

Upvotes: 3

Related Questions