CollectionViewSource.SortDescriptions Property

Gets or sets a collection of SortDescription objects that describes how the items in the collection are sorted in the view.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public SortDescriptionCollection SortDescriptions { get; }
<object>
  <object.SortDescriptions>
    oneOrMoreSortDescriptions
  </object.SortDescriptions>
</object>

XAML Values

oneOrMoreSortDescriptions

One or more SortDescription elements.

Property Value

Type: System.ComponentModel.SortDescriptionCollection
A collection of SortDescription objects that describes how the items in the collection are sorted in the view.

This property is forwarded to any collection view created from the current source.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft