In earlier Versions of .net you could use something like
ICollectionView collectionView = CollectionViewSource.GetDefaultView(AllImages);
To build up filter mechanisms for UI-Elements. But this doesn't seem to exist in WinRT anymore.
I'm using a ListBox-Element to display an User-List. The User-Class contains the properties username (String), isOnline (Boolean), isFriend (Boolean) and unreadMails (Int). I need some kind of Filtering and sorting.
Filter by:
- no Filter
- only isOnline == true
Order by:
- unreadMails > 0
- unreadMails == 0
- AND isOnline == true
- AND isFriend == true
- isFriend == false
- AND isOnline == false
- AND isFriend == true
- AND isFriend == false
- AND isOnline == true
The properties may change while running, it would be cool if the list updates itself automatically. (Binding is already working, only the filter and order is missing).
Any Ideas how to achieve this?