Class
SortDescriptor

Represents declarative sorting.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public class SortDescriptor : SortDescriptorBase, ISuspendNotifications, ISortDescriptor, INotifyPropertyChanged, IEquatable<SortDescriptor>

Inheritance: objectInheritanceContextPropagatorDescriptorBaseSortDescriptorBaseSortDescriptor

Implements: IEquatable<SortDescriptor>INotifyPropertyChangedISortDescriptorISuspendNotifications

Inherited Members SortDescriptorBase.SortDirectionPropertySortDescriptorBase.CreateSortKeyExpression(Expression)SortDescriptorBase.SortDirectionDescriptorBase.OnPropertyChanged(PropertyChangedEventArgs)DescriptorBase.OnPropertyChanged(string)DescriptorBase.SuspendNotifications()DescriptorBase.ResumeNotifications()DescriptorBase.NotificationsSuspendedDescriptorBase.PropertyChangedInheritanceContextPropagator.CreateInstanceCore()InheritanceContextPropagator.FreezeCore(bool)

Constructors

SortDescriptor()

Declaration

cs-api-definition
public SortDescriptor()

Fields

MemberProperty

Identifies the Member dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MemberProperty

Field Value

DependencyProperty

Properties

Member

Gets or sets the member name that will be used for sorting.

Declaration

cs-api-definition
public string Member { get; set; }

Property Value

string

The member name that will be used for sorting.

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

ParameterExpression

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)

Equals(SortDescriptor)

Checks whether this SortDescriptor is equal to another.

Declaration

cs-api-definition
public bool Equals(SortDescriptor other)

Parameters

other

SortDescriptor

The SortDescriptor to check equality against.

Returns

bool

Implements IEquatable<SortDescriptor>.Equals(SortDescriptor)