Xceed Ultimate ListBox for Silverlight Documentation
SortDescriptions Property (ListBox)
Example 


Gets a collection of sort descriptions that describe how the items in a listbox are sorted.
Syntax
Public ReadOnly Property SortDescriptions As ObservableCollection(Of SortDescription)
Dim instance As ListBox
Dim value As ObservableCollection(Of SortDescription)
 
value = instance.SortDescriptions
public ObservableCollection<SortDescription> SortDescriptions {get;}

Property Value

A generic ObservableCollection of SortDescription objects that describe how the items in a listbox are sorted.
Remarks

Whenever PropertyGroupDescription instances are added to GroupDescriptions, the data will be sorted in ascending order based on the PropertyName; however, a SortDescription object will not be added to the SortDescriptions collection.

Example
<sllb:ListBox.SortDescriptions>
   <!-- Add a SortDescription for ShipCountry -->
   <s:SortDescription PropertyName="ShipCountry"
                      Direction="Ascending" />
</sllb:ListBox.SortDescriptions>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ListBox Class
ListBox Members

Send Feedback