WPF Tips: PropertyChanged为null

当xaml中的一个element binding一个property时,出现PropertyChanged is null的原因(目前遇到的):

1. 没有设置将element(或上级)的DataContext。

2. Property不是public(血泪的教训)。

 

以后如遇到新情况会继续更新

posted @ 2016-04-27 15:17  Jane&Coding  阅读(2187)  评论(2)    收藏  举报