Filtering and Sorting of an ObservableCollection in ListView-Binding

后端 未结 2 563
夕颜
夕颜 2021-01-23 05:09

In earlier Versions of .net you could use something like

ICollectionView collectionView = CollectionViewSource.GetDefaultView(AllImages);

To bu

2条回答
  •  故里飘歌
    2021-01-23 05:50

    There is a custom ICollectionView implementation available on CodeProject that adds the functionality of sorting/filtering. Here is a link to the article/code: http://www.codeproject.com/Articles/527686/A-WinRT-CollectionView-class-with-Filtering-and-So

    This will bring back some of the functionality that is missing in the WinRT version of ICollectionView. Hopefully this will help someone who comes across this question as I did, looking for the ability to filter a collection.

提交回复
热议问题