ObservableCollection<T> 的同类 ListCollectionView
2013-12-30 17:36
429 查看
1:ListCollectionView : CollectionView : INotifyCollectionChanged, INotifyPropertyChanged
2:ObservableCollection<T> : INotifyCollectionChanged, INotifyPropertyChanged
由于“1”和“2”都实现了“INotifyCollectionChanged, INotifyPropertyChanged”接口,所以在添加项、移除项或刷新整个集合时,都具有“自动通知”目标的功能。
其中“ListCollectionView”集合的变化主要受“构造参数”——IList的影响,通常可以向“IList”形参中传入“ObservableCollection<T>”类型的实参。
3:关注ObservableCollection<T> 的“CollectionChanged”事件,它在添加、移除、更改或移动项或者在刷新整个列表时发生。
2:ObservableCollection<T> : INotifyCollectionChanged, INotifyPropertyChanged
由于“1”和“2”都实现了“INotifyCollectionChanged, INotifyPropertyChanged”接口,所以在添加项、移除项或刷新整个集合时,都具有“自动通知”目标的功能。
其中“ListCollectionView”集合的变化主要受“构造参数”——IList的影响,通常可以向“IList”形参中传入“ObservableCollection<T>”类型的实参。
3:关注ObservableCollection<T> 的“CollectionChanged”事件,它在添加、移除、更改或移动项或者在刷新整个列表时发生。
相关文章推荐
- c# List<T>与ObservableCollection<T>
- 简析SilverLight的List<T>、ObservableCollection<T>和INotifyPropertyChanged
- .NET漫游指南-005-INotifyProperChanged和List<>,ObservableCollection<>使用
- c# List<T>与ObservableCollection<T>
- 简析SilverLight的List<T>、ObservableCollection<T>和INotifyPropertyChanged的异同
- wpf list<T>与ObservableCollection<T>的区别
- wpf list<T>与ObservableCollection<T>的区别
- List<T>、ObservableCollection<T>和接口INotifyPropertyChanged
- List<T>和ObservableCollection<T>的相互转化
- 【转】list<T>与ObservableCollection<T>的区别
- C# Winform DataGrid 绑定List<> Or ObservableCollection<> 类型无法自动刷新问题
- list<T>与ObservableCollection<T>
- 简析SilverLight的List<T>、ObservableCollection<T>和INotifyPropertyChanged的异同
- WPF中的List<T>和ObservableCollection<T>
- SilverLight的List<T>、ObservableCollection<T>和INotifyPropertyChanged
- wpf list<T>与ObservableCollection<T>的区别
- c# List<T>与ObservableCollection<T>
- SilverLight的List<T>、ObservableCollection<T>和INotifyPropertyChanged的异同 (转)
- 简析SilverLight的List<T>、ObservableCollection<T>和INotifyPropertyChanged的异同
- List<T>转换为ObservableCollection<T>