Jump to: navigation, search

Changes


Version 3.6 (WinX)

973 bytes added, 10:35, 23 October 2019
/* Xaml Changes */
{{Hint|Technically speaking, SelectionBoundListView informs item view models when their corresponding items are visualized. This way, view models can skip a lot of unnecessary work (on the UI) when their views are not visible. '''If the regular ListView is used instead, the item views will not reflect content changes until the page is reloaded/refreshed.'''}}
== Customized Sorting ==
Customizers can now specify the sort order of the items in XAML with the help of a ListCollectionView. The path to a comparable property, that is used for comparing can be specified. Multiple properties can be used, whereby the priority goes from the first to the last property. The direction can be specified by either "Ascending" (default) or "Descending".
 
<source lang="xml">
<collectionview:ListCollectionView x:Key="CustomSortedList" ItemsSource="{Binding Children.Items}">
<collectionview:ListCollectionView.SortParameter>
<collectionview:SortDescriptions>
<collectionview:SortDescription PropertyName="Header" Direction="Ascending"/>
<collectionview:SortDescription PropertyName="Content.UID" Direction="Descending"/>
</collectionview:SortDescriptions>
</collectionview:ListCollectionView.SortParameter>
</collectionview:ListCollectionView>
</source>
<headertabs />
{{Category/Version2|{{PAGENAME}}}}
 
[[Category:Version 3.6|Version 3.6 (WinX)]]
53
edits