Allows sorting by a lambda expression.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Type Parameters:
TElement
TKey
Syntax:
C#
public class SortDescriptor<TElement, TKey> : SortDescriptorBase, ISuspendNotifications, ISortDescriptor, INotifyPropertyChanged
Inheritance: objectInheritanceContextPropagatorDescriptorBaseSortDescriptorBaseSortDescriptor<TElement, TKey>
Implements:
Inherited Members
Constructors
C#
public SortDescriptor()
Fields
SortingExpressionProperty
DependencyProperty
Identifies the SortingExpression dependency property.
C#
public static readonly DependencyProperty SortingExpressionProperty
Properties
SortingExpression
Expression<Func<TElement, TKey>>
Gets or sets the sorting predicate.
C#
public Expression<Func<TElement, TKey>> SortingExpression { get; set; }
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)
The parameter expression, which will be used for sorting.
Returns:Expression that creates a sort key for the given item.
Overrides: