摘要: 1)数据源添加一个Student类:(Binding是一种自动机制,当值变化后属性要有能力通知Binding,让Binding把变化传递给UI元素。方法是在属性set语句中激发一个PropertyChanged事件。这个事件不用我们声明,我们要做到的是让作为数据源的类实现System.ComponentModel名称空间中的INotifyPropertyChanged接口。当为Binding设置了数据源后,Binding就会自动监听来自这个接口的PropertyChanged事件。)using System;using System.Collections.Generic;using Syst 阅读全文
posted @ 2014-01-17 02:02 KeenLeung 阅读(600) 评论(0) 推荐(0) 编辑