New to Telerik UI for WPFStart a free 30-day trial

Represents declarative sorting.

Definition

Constructors

C#
public SortDescriptor()

Fields

MemberProperty

DependencyProperty

Identifies the Member dependency property.

C#
public static readonly DependencyProperty MemberProperty

Properties

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

C#
public string Member { get; set; }
Property Value:

The member name that will be used for sorting.

Methods

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

C#
protected override Expression CreateSortKeyExpression(ParameterExpression parameterExpression)
Parameters:parameterExpressionParameterExpression

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)

Checks whether this SortDescriptor is equal to another.

C#
public bool Equals(SortDescriptor other)
Parameters:otherSortDescriptor

The SortDescriptor to check equality against.

Returns:

bool

Implements: IEquatable<SortDescriptor>.Equals(SortDescriptor)