Class
SortDescriptorBase

Serves as a base class for sort descriptors.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public abstract class SortDescriptorBase : DescriptorBase, ISuspendNotifications, ISortDescriptor, INotifyPropertyChanged

Inheritance: objectInheritanceContextPropagatorDescriptorBaseSortDescriptorBase

Derived Classes: ColumnSortDescriptorColumnSortDescriptorSortDescriptorSortDescriptor<TElement, TKey>

Implements: INotifyPropertyChangedISortDescriptorISuspendNotifications

Inherited Members DescriptorBase.OnPropertyChanged(PropertyChangedEventArgs)DescriptorBase.OnPropertyChanged(string)DescriptorBase.SuspendNotifications()DescriptorBase.ResumeNotifications()DescriptorBase.NotificationsSuspendedDescriptorBase.PropertyChangedInheritanceContextPropagator.CreateInstanceCore()InheritanceContextPropagator.FreezeCore(bool)

Constructors

SortDescriptorBase()

Declaration

cs-api-definition
protected SortDescriptorBase()

Fields

SortDirectionProperty

Identifies the SortDirection Dependency Property.

Declaration

cs-api-definition
public static readonly DependencyProperty SortDirectionProperty

Field Value

DependencyProperty

Properties

SortDirection

Gets or sets the sort direction for this descriptor.

Declaration

cs-api-definition
public virtual ListSortDirection SortDirection { get; set; }

Property Value

ListSortDirection

The sort direction.

Implements ISortDescriptor.SortDirection

Methods

CreateSortKeyExpression(Expression)

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

Declaration

cs-api-definition
public virtual Expression CreateSortKeyExpression(Expression itemExpression)

Parameters

itemExpression

Expression

Expression representing an item in a collection.

Returns

Expression

Expression that creates sort key for the given item.

Implements ISortDescriptor.CreateSortKeyExpression(Expression)

CreateSortKeyExpression(ParameterExpression)

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

Declaration

cs-api-definition
protected virtual 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.