Class
GroupDescriptorBase

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:

cs-api-definition
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

GroupDescriptorBase()

Declaration

cs-api-definition
protected GroupDescriptorBase()

Fields

DisplayContentProperty

Identifies the DisplayContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisplayContentProperty

Field Value

DependencyProperty

Properties

DisplayContent

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

Declaration

cs-api-definition
public virtual object DisplayContent { get; set; }

Property Value

object

SortDirection

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

Declaration

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

Property Value

ListSortDirection?

The sort direction. The default value is null.

Implements IGroupDescriptor.SortDirection

Methods

CreateGroupKeyExpression(Expression)

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

Declaration

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

Parameters

itemExpression

Expression

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)

CreateGroupKeyExpression(ParameterExpression)

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

Declaration

cs-api-definition
protected virtual Expression CreateGroupKeyExpression(ParameterExpression parameterExpression)

Parameters

parameterExpression

ParameterExpression

The parameter expression, which will be used for grouping.

Returns

Expression

Expression that creates group key for the given item.

CreateGroupSortExpression(Expression)

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

Declaration

cs-api-definition
public virtual Expression CreateGroupSortExpression(Expression groupingExpression)

Parameters

groupingExpression

Expression

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)

CycleSortDirection()

Changes the SortDescriptor to the next logical value.

Declaration

cs-api-definition
public void CycleSortDirection()