绑定路径中的括号是什么意思? [英] What do parentheses in binding paths mean?
本文介绍了绑定路径中的括号是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近我在MSDN上阅读了数据绑定概述文章,并有以下示例代码:
Recently i've read 'Databinding overview' article at MSDN and there is such sample code:
<TextBox.ToolTip>
<Binding RelativeSource="{RelativeSource Self}" Path="(Validation.Errors)[0].ErrorContent"/>
</TextBox.ToolTip>
我知道{}表示标记扩展名,但这里有什么意思(括号)?这是很好的人分享链接到解释这样的语法。谢谢!
I know that {} means markup extensions but what mean () parentheses here? It would be nice someone share link to explanation such syntax. Thanks!
Path="(Validation.Errors)[0].ErrorContent"
推荐答案
()
括号指附件属性。
这篇关于绑定路径中的括号是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文