Jump to: navigation, search

Changes


Property Based Content Sorting

849 bytes added, 09:36, 11 November 2020
{{Category/Version|2.6.1}}
== Collection View sorting ==
This functionality is documented in more detail on the wiki page [[Version 3.6 (WinX)]].
 
There is the possibility to sort at the point where you define your Collection View. This is especially useful for sorting Selective List items! An example is as follows:
<source lang = "xml">
<cv:ListCollectionView x:Key="SortedList" ItemsSource="{Binding EditDialogViewModel.PropertyItem, Converter={StaticResource SelectiveListToItemsConverter}}">
<cv:ListCollectionView.SortDescriptions>
<cv:SortDescriptions>
<cv:SortDescription Direction="Ascending" PropertyName="Value" />
</cv:SortDescriptions>
</cv:ListCollectionView.SortDescriptions>
</cv:ListCollectionView>
</source>
 
{{Hint|This example can be found in the Lonza customising.}}
 
[[Category:2.6.1|Property Based Content Sorting]]
[[Category:WinX|Property Based Content Sorting]]
511
edits