首页 新闻 会员 周边

INotifyPropertyChanged 中的事件 相关函数实现在哪儿?

0
悬赏园豆:5 [已关闭问题]

 INotifyPropertyChanged 中的PropertyChanged事件的函数实现???在哪儿???

问题补充: public class Person : INotifyPropertyChanged { private string firstNameValue; public string FirstName{ get { return firstNameValue; } set { firstNameValue=value; // Call NotifyPropertyChanged when the property is updated NotifyPropertyChanged("FirstName"); } } // Declare the PropertyChanged event public event PropertyChangedEventHandler PropertyChanged; // NotifyPropertyChanged will raise the PropertyChanged event passing the // source property that is being updated. public void NotifyPropertyChanged(string propertyName) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } 是 这个NotifyPropertyChanged 函数吗?哪位高人给我讲一讲啊。
管理员的主页 管理员 | 初学一级 | 园豆:195
提问于:2010-04-20 13:37
< >
分享
其他回答(1)
0

没有,自己写

Gray Zhang | 园豆:17610 (专家六级) | 2010-04-20 13:38
0

可以写在DataModel中

kooting | 园豆:205 (菜鸟二级) | 2010-04-20 14:46
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册