How would one go about sorting my listbox contents? It seems to me that it would make more sense to keep this only on the UI layer since sorting won’t affect my business logic, so it probably goes in the xaml or code-behind. I can’t figure out what to do exactly though.
Share
You will want to use a
CollectionViewfor that.To do sorting in XAML you can use the
CollectionViewSourceclass; Example from MSDN: