New to Telerik UI for WPFStart a free 30-day trial

Allows sorting by a lambda expression.

Definition

Constructors

C#
public SortDescriptor()

Fields

SortingExpressionProperty

DependencyProperty

Identifies the SortingExpression dependency property.

C#
public static readonly DependencyProperty SortingExpressionProperty

Properties

Gets or sets the sorting predicate.

C#
public Expression<Func<TElement, TKey>> SortingExpression { get; set; }
Property Value:

The sorting predicate.

Methods

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

C#
protected override Expression CreateSortKeyExpression(ParameterExpression parameterExpression)
Parameters:parameterExpressionParameterExpression

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)