Xceed Toolkit Plus for WPF v4.6 Documentation
SortDescriptions Property (ListBox)
Example 


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace > ListBox Class : SortDescriptions Property
Gets a collection of sort descriptions that describe how the items in a listbox are sorted.
Syntax
'Declaration
 
Public ReadOnly Property SortDescriptions As ObservableCollection(Of SortDescription)
'Usage
 
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 11, Windows 10, 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