KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Currently, my CollectionViewSource sorts a collection of items by description. If the description is the same, I want to sort based on ID. How can I specify to sort by description first, then by ID? I've tried adding a second SortDescription with PropertyName="Id", but that hasn't worked. <CollectionViewSource x:Key="Items" Source="{Binding Items}" > <CollectionViewSource.SortDescriptions> <scm:SortDescription PropertyName="Description"/> </CollectionViewSource.SortDescriptions> </CollectionViewSource> EDIT: The ID property was private on the viewmodel. No errors thrown.
Tags (comma-separated)
Save Edits
Cancel