我们知道大括号"{}"在XAML中是用来处理"标记扩展的, 
比如:

<Button Content="{Binding}"/>

 
但如何转义而表示普通大括号的字符串呢? 比如

 <Button Content="{these are braces}, {Others}"/>

但这会编译不过,说未定义的扩展标记. 正确的写法

<Button Content="{}{these are braces}, {Others}"/> 

 

转载自:http://blog.csdn.net/zhouyinhui/article/details/4614445

posted on 2012-08-27 12:54  Ash Tang  阅读(195)  评论(0编辑  收藏  举报