【发布时间】:2013-01-01 04:46:11
【问题描述】:
最近我在 MSDN 上阅读了“数据绑定概述”文章,并且有这样的示例代码:
<TextBox.ToolTip>
<Binding RelativeSource="{RelativeSource Self}" Path="(Validation.Errors)[0].ErrorContent"/>
</TextBox.ToolTip>
我知道{} 表示标记扩展,但这里的() 括号是什么意思?有人分享解释这种语法的链接会很好。谢谢!
Path="(Validation.Errors)[0].ErrorContent"
【问题讨论】:
标签: wpf xaml data-binding syntax parentheses