索引属性用作databinding source的语法

来源:互联网 发布:网络跑路了是什么意思 编辑:程序博客网 时间:2024/06/04 18:24

用索引属性做为databinding的数据源时,path要用中括号括起来,如下:

Binding="{Binding Path=[path]}"

 

若要实现PropertyChanged,参见下面的链接:

http://stackoverflow.com/questions/657675/propertychanged-for-indexer-property

原创粉丝点击