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

Serves as a base class for group descriptors. Holds SortDirection that will be used to sort the groups created from the descriptor.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public abstract class GroupDescriptorBase : DescriptorBase, ISuspendNotifications, IGroupDescriptor, INotifyPropertyChanged

Inheritance: objectInheritanceContextPropagatorDescriptorBaseGroupDescriptorBase

Derived Classes: ColumnGroupDescriptorAggregatedGroupDescriptorBase

Implements: IGroupDescriptorINotifyPropertyChangedISuspendNotifications

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

Constructors

C#
protected GroupDescriptorBase()

Fields

DisplayContentProperty

DependencyProperty

Identifies the DisplayContent dependency property.

C#
public static readonly DependencyProperty DisplayContentProperty

Properties

Gets or sets the content which will be used to visually represent this descriptor.

C#
public virtual object DisplayContent { get; set; }

Gets or sets the sort direction for this descriptor. If the value is null no sorting will be applied.

C#
public virtual ListSortDirection? SortDirection { get; set; }
Property Value:

The sort direction. The default value is null.

Implements: IGroupDescriptor.SortDirection

Methods

Creates a group expression by delegating its creation to CreateGroupKeyExpression(ParameterExpression), if itemExpression is ParameterExpression, otherwise throws ArgumentException

C#
public virtual Expression CreateGroupKeyExpression(Expression itemExpression)
Parameters:itemExpressionExpression

The instance expression, which will be used for grouping.

Returns:

Expression

Expression that creates group key for the given item.

Exceptions:

ArgumentException

Parameter should be of type ParameterExpression

Implements: IGroupDescriptor.CreateGroupKeyExpression(Expression)

Creates a group expression that returns the grouping key for each item in a collection.

C#
protected virtual Expression CreateGroupKeyExpression(ParameterExpression parameterExpression)
Parameters:parameterExpressionParameterExpression

The parameter expression, which will be used for grouping.

Returns:

Expression

Expression that creates group key for the given item.

Creates sorting key expression that sorts the groups created from this descriptor using the group's key.

C#
public virtual Expression CreateGroupSortExpression(Expression groupingExpression)
Parameters:groupingExpressionExpression

The grouping expression, which represents the grouped items created from the CreateGroupKeyExpression(Expression).

Returns:

Expression

Expression that represents the sort criteria for each group.

Implements: IGroupDescriptor.CreateGroupSortExpression(Expression)

Changes the SortDescriptor to the next logical value.

C#
public void CycleSortDirection()