需要有关INotifyPropertyChanged接口的说明 [英] Need a explain about INotifyPropertyChanged interface

查看:63
本文介绍了需要有关INotifyPropertyChanged接口的说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我对C#有一些经验.我试图提高自己的知识,所以发现了一个名为INotifyPropertyChanged的界面,该界面在WPF和Windows Phone应用程序开发中都非常有用.我尝试了但无法理解此INotifyPropertyChanged
任何人都可以用示例进行解释!

Hi,
I have some experience about C#. I try to improve my knowlege so I have found interface called INotifyPropertyChanged that is very useful in WPF also Windows Phone application development.I tried but could n''t understand this INotifyPropertyChanged
Can anyone explain this with example please!

推荐答案

此接口是Observer模式的.NET实现形式.您可以使用Google阅读有关它的更多信息.这是MSDN上的两篇文章,描述了实现:
http://msdn.microsoft.com/en-us/library/system.componentmodel. inotifypropertychanged.aspx [^ ]
http://msdn.microsoft.com/en-us/library/ms229614%28v = vs.85%29.aspx [ ^ ]
This interface is kind of the .NET implemenation of the Observer pattern. You may use Google to read more about it. Here are two articles from MSDN describing the implementation:
http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx[^]
http://msdn.microsoft.com/en-us/library/ms229614%28v=vs.85%29.aspx[^]


查看MSDN:http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx [使用INotifyPropertyChanged更好地结合 [
Look at MSDN : http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx[^]

Impementation : Bind Better with INotifyPropertyChanged[^]


这篇关于需要有关INotifyPropertyChanged接口的说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆