What do parentheses in binding paths mean?

后端 未结 4 1579
说谎
说谎 2020-12-16 20:18

Recently i\'ve read \'Databinding overview\' article at MSDN and there is such sample code:


  

        
4条回答
  •  伪装坚强ぢ
    2020-12-16 20:41

    (Validation.Errors) references the attached property Errors in the Validation class. Since the binding has a RelativeSource = Self, it's gonna look for the value of that attached property with respect to the TextBox itself.

提交回复
热议问题