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