Sort by Property | |
---|---|
Name | SortByPropertyCommand |
Purpose | Sort the child object list by the specified property |
Version | 2.6.1+ |
ViewModel | ChildrenListViewModel |
The SortByProperty Command is used to sort the child object list.
The name of the property by which the list should be sorted is specified in the command parameter.
Example:
<Button FontFamily="Segoe MDL2 Assets"
Content="{Binding Children.Sorting[SomePropertyName], Converter={StaticResource SDToSymbolConverter}}"
Command="{Binding Children.SortByPropertyCommand}" CommandParameter="SomePropertyName" />
Content="{Binding Children.Sorting[SomePropertyName], Converter={StaticResource SDToSymbolConverter}}"
Command="{Binding Children.SortByPropertyCommand}" CommandParameter="SomePropertyName" />