ClassSortDescriptor<TElement, TKey>
Class
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:
Inherited Members
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
The parameter expression, which will be used for sorting.
Returns
Expression that creates a sort key for the given item.
Overrides