Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

sort list box observable collection

$
0
0

hi,

my listbox itemsource is "sourceList" - which is MultiSelectCollectionView<string>

i want my list box to be sorted using sort description.but we need to add property with the sort description like below

<CollectionViewSource.SortDescriptions>

<scm:SortDescriptionPropertyName="PropertName"/>

</CollectionViewSource.SortDescriptions>

but there is no such property exist in my item source as my item source itself is property.

so how to sort my list box using sort descrion in xaml it self


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>