Allows grouping by a lambda expression.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Type Parameters:
TElement
TKey
TSortingKey
Syntax:
public class GroupDescriptor<TElement, TKey, TSortingKey> : AggregatedGroupDescriptorBase, ISuspendNotifications, IGroupDescriptor, INotifyPropertyChanged, IAggregateFunctionsProvider
Inheritance: objectInheritanceContextPropagatorDescriptorBaseGroupDescriptorBaseAggregatedGroupDescriptorBaseGroupDescriptor<TElement, TKey, TSortingKey>...
Implements:
Inherited Members
Constructors
public GroupDescriptor()
Fields
GroupingExpressionProperty
DependencyProperty
Identifies the GroupingExpression dependency property.
public static readonly DependencyProperty GroupingExpressionProperty
GroupSortingExpressionProperty
DependencyProperty
Identifies the GroupSortingExpression dependency property.
public static readonly DependencyProperty GroupSortingExpressionProperty
Properties
GroupingExpression
Expression<Func<TElement, TKey>>
Gets or sets the grouping predicate.
public Expression<Func<TElement, TKey>> GroupingExpression { get; set; }
The grouping predicate.
GroupSortingExpression
Expression<Func<IGrouping<TKey, TElement>, TSortingKey>>
Gets or sets the grouping and sorting predicate.
public Expression<Func<IGrouping<TKey, TElement>, TSortingKey>> GroupSortingExpression { get; set; }
The grouping and sorting predicate.
Methods
Creates a group expression that returns the grouping key for each item in a collection.
protected override Expression CreateGroupKeyExpression(ParameterExpression parameterExpression)
The parameter expression, which will be used for grouping.
Returns:Expression that creates group key for the given item.
Overrides:
Creates sorting key expression that sorts the groups created from this descriptor using the group's key.
public override Expression CreateGroupSortExpression(Expression groupingExpression)
The grouping expression, which represents the grouped items created from the CreateGroupKeyExpression(Expression).
Returns:Expression that represents the sort criteria for each group.
Overrides: