Jump to: navigation, search

Difference between revisions of "SortByPropertyCommand"


(Created page with "{{CommandInfoBox | title = Sort by Property | name = {{PAGENAMEE}} | purpose = Sort the child object list by the specified property | version = 2.6.1+ | viewmodel = ChildrenLi...")
 
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
}}
 
}}
 
   
 
   
The SortByProperty Command is used to sort the child object list  
+
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.
  
== Command Parameter ==
 
{| class="wikitable" width=50%
 
|-
 
! width=30% | Name !! width=30% | Data type !! Comment
 
|-
 
| ''Property Name'' || | The name of the property by which the list should be sorted.
 
|}
 
  
 
Example:
 
Example:
 
<source lang = "xml">
 
<source lang = "xml">
 
<Button FontFamily="Segoe MDL2 Assets"
 
<Button FontFamily="Segoe MDL2 Assets"
            Content="{Binding Children.Sorting[SomePropertyName], Converter={StaticResource SDToSymbolConverter}}"
+
        Content="{Binding Children.Sorting[SomePropertyName], Converter={StaticResource SDToSymbolConverter}}"
            Command="{Binding Children.SortByPropertyCommand}" CommandParameter="SomePropertyName" />
+
        Command="{Binding Children.SortByPropertyCommand}" CommandParameter="SomePropertyName" />
 
</source>
 
</source>
  
 
{{Category/Version|2.6.1}}
 
{{Category/Version|2.6.1}}
  
 +
[[Category:2.6.1|SortByPropertyCommand]]
 
[[Category:WinX|SortByPropertyCommand]]
 
[[Category:WinX|SortByPropertyCommand]]

Latest revision as of 14:39, 18 May 2017

IC COMMAND.png Sort by Property
Name SortByPropertyCommand
Purpose Sort the child object list by the specified property
Version 2.6.1+
ViewModel ChildrenListViewModel

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" />