摘要: 上篇用INotifyPropertyChanged实现的属性变更通知UI,在这篇里我们看看使用DependencyProperty如何实现。需要改变的部分并不多,打开WeatherViewModel,修改WeatherViewModel类如下 1 public class WeatherViewModel : DependencyObject 2 { 3 public WeatherViewModel() 4 { 5 if (updateCmd == null) 6 { 7 ... 阅读全文
posted @ 2013-07-11 16:24 Titan_wt 阅读(1184) 评论(4) 推荐(1) 编辑