Class
SortDescriptor<TElement, TKey>

Allows sorting by a lambda expression.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Type Parameters:

TElement

TKey

Syntax:

cs-api-definition
public class SortDescriptor<TElement, TKey> : SortDescriptorBase, ISuspendNotifications, ISortDescriptor, INotifyPropertyChanged

Inheritance: objectInheritanceContextPropagatorDescriptorBaseSortDescriptorBaseSortDescriptor<TElement, TKey>

Implements: INotifyPropertyChangedISortDescriptorISuspendNotifications

Inherited Members SortDescriptorBase.SortDirectionPropertySortDescriptorBase.CreateSortKeyExpression(Expression)SortDescriptorBase.SortDirectionDescriptorBase.OnPropertyChanged(PropertyChangedEventArgs)DescriptorBase.OnPropertyChanged(string)DescriptorBase.SuspendNotifications()DescriptorBase.ResumeNotifications()DescriptorBase.NotificationsSuspendedDescriptorBase.PropertyChangedInheritanceContextPropagator.CreateInstanceCore()InheritanceContextPropagator.FreezeCore(bool)

Constructors

SortDescriptor()

Declaration

cs-api-definition
public SortDescriptor()

Fields

SortingExpressionProperty

Identifies the SortingExpression dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SortingExpressionProperty

Field Value

DependencyProperty

Properties

SortingExpression

Gets or sets the sorting predicate.

Declaration

cs-api-definition
public Expression<Func<TElement, TKey>> SortingExpression { get; set; }

Property Value

Expression<Func<TElement, TKey>>

The sorting predicate.

Methods

CreateSortKeyExpression(ParameterExpression)

Creates a sort expression that returns the sorting key for each item in a collection.

Declaration

cs-api-definition
protected override Expression CreateSortKeyExpression(ParameterExpression parameterExpression)

Parameters

parameterExpression

ParameterExpression

The parameter expression, which will be used for sorting.

Returns

Expression

Expression that creates a sort key for the given item.

Overrides SortDescriptorBase.CreateSortKeyExpression(ParameterExpression)