什么是.NET使用的ObservableCollection的? [英] What is the use of ObservableCollection in .net?

查看:150
本文介绍了什么是.NET使用的ObservableCollection的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是.NET使用的ObservableCollection的?

What is the use of ObservableCollection in .net?

推荐答案

这是的ObservableCollection 作品本质上就像一个定期收集不同之处在于它实现 接口:

An ObservableCollection works essentially like a regular collection except that it implements the interfaces:

  • INotifyCollectionChanged
  • INotifyPropertyChanged的
  • INotifyCollectionChanged,
  • INotifyPropertyChanged

因此​​它时,你想知道什么时候采集改变是非常有用的。事件被触发,会告诉哪些条目已被添加/删除或移动用户。

As such it is very useful when you want to know when the collection has changed. An event is triggered that will tell the user what entries have been added/removed or moved.

更重要的是在窗体上使用数据绑定的时候都非常有用。

More importantly they are very useful when using databinding on a form.

这篇关于什么是.NET使用的ObservableCollection的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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