WPF Tips: PropertyChanged为null
当xaml中的一个element binding一个property时,出现PropertyChanged is null的原因(目前遇到的):
1. 没有设置将element(或上级)的DataContext。
2. Property不是public(血泪的教训)。
以后如遇到新情况会继续更新
当xaml中的一个element binding一个property时,出现PropertyChanged is null的原因(目前遇到的):
1. 没有设置将element(或上级)的DataContext。
2. Property不是public(血泪的教训)。
以后如遇到新情况会继续更新