这段 xaml 代码中的符号 {} 是什么意思?
来自 BindingBase.StringFormat 属性 的
<MultiBinding StringFormat="{}{0} -- Now only {1:C}!">
作用是什么第一个{}是什么意思?这是一种告诉 { } (通常是 XAML 中的语法字符)将被视为普通字符的方法吗?我们究竟如何使用这个?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 MSDN 上的这篇文章 {} 转义序列/标记扩展,其中显示
Look at this article on MSDN {} Escape Sequence / Markup Extension which says