Class
GroupDescriptor<TElement, TKey, TSortingKey>

Allows grouping by a lambda expression.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Type Parameters:

TElement

TKey

TSortingKey

Syntax:

cs-api-definition
public class GroupDescriptor<TElement, TKey, TSortingKey> : AggregatedGroupDescriptorBase, ISuspendNotifications, IGroupDescriptor, INotifyPropertyChanged, IAggregateFunctionsProvider

Inheritance: objectInheritanceContextPropagatorDescriptorBaseGroupDescriptorBaseAggregatedGroupDescriptorBaseGroupDescriptor<TElement, TKey, TSortingKey>

Implements: IAggregateFunctionsProviderIGroupDescriptorINotifyPropertyChangedISuspendNotifications

Inherited Members AggregatedGroupDescriptorBase.AggregateFunctionsPropertyAggregatedGroupDescriptorBase.AggregateFunctionsGroupDescriptorBase.DisplayContentPropertyGroupDescriptorBase.CreateGroupKeyExpression(Expression)GroupDescriptorBase.CycleSortDirection()GroupDescriptorBase.SortDirectionGroupDescriptorBase.DisplayContentDescriptorBase.OnPropertyChanged(PropertyChangedEventArgs)DescriptorBase.OnPropertyChanged(string)DescriptorBase.SuspendNotifications()DescriptorBase.ResumeNotifications()DescriptorBase.NotificationsSuspendedDescriptorBase.PropertyChangedInheritanceContextPropagator.CreateInstanceCore()InheritanceContextPropagator.FreezeCore(bool)

Constructors

GroupDescriptor()

Declaration

cs-api-definition
public GroupDescriptor()

Fields

GroupSortingExpressionProperty

Identifies the GroupSortingExpression dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GroupSortingExpressionProperty

Field Value

DependencyProperty

GroupingExpressionProperty

Identifies the GroupingExpression dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GroupingExpressionProperty

Field Value

DependencyProperty

Properties

GroupSortingExpression

Gets or sets the grouping and sorting predicate.

Declaration

cs-api-definition
public Expression<Func<IGrouping<TKey, TElement>, TSortingKey>> GroupSortingExpression { get; set; }

Property Value

Expression<Func<IGrouping<TKey, TElement>, TSortingKey>>

The grouping and sorting predicate.

GroupingExpression

Gets or sets the grouping predicate.

Declaration

cs-api-definition
public Expression<Func<TElement, TKey>> GroupingExpression { get; set; }

Property Value

Expression<Func<TElement, TKey>>

The grouping predicate.

Methods

CreateGroupKeyExpression(ParameterExpression)

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

Declaration

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

Overrides GroupDescriptorBase.CreateGroupKeyExpression(ParameterExpression)

CreateGroupSortExpression(Expression)

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

Declaration

cs-api-definition
public override 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.

Overrides GroupDescriptorBase.CreateGroupSortExpression(Expression)