Should I bind to ICollectionView or ObservableCollection

前端 未结 5 610
失恋的感觉
失恋的感觉 2020-11-29 19:44

Should one bind DataGrid to the

ICollectionView = CollectionViewSource.GetDefaultView(collection)

or to the

Observabl

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 20:25

    I don't think so it has to do anything with MVVM itself. ICollectionView provides additional features like soring grouping and etc if you need those use IColectionView otherwise simply use ObservableCollection

提交回复
热议问题