ClassGroupDescriptor<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:
public class GroupDescriptor<TElement, TKey, TSortingKey> : AggregatedGroupDescriptorBase, ISuspendNotifications, IGroupDescriptor, INotifyPropertyChanged, IAggregateFunctionsProvider
Inheritance: objectInheritanceContextPropagatorDescriptorBaseGroupDescriptorBaseAggregatedGroupDescriptorBaseGroupDescriptor<TElement, TKey, TSortingKey>
Implements:
Inherited Members
Constructors
GroupDescriptor()
Declaration
public GroupDescriptor()
Fields
GroupSortingExpressionProperty
Identifies the GroupSortingExpression dependency property.
Declaration
public static readonly DependencyProperty GroupSortingExpressionProperty
Field Value
DependencyProperty
GroupingExpressionProperty
Identifies the GroupingExpression dependency property.
Declaration
public static readonly DependencyProperty GroupingExpressionProperty
Field Value
DependencyProperty
Properties
GroupSortingExpression
Gets or sets the grouping and sorting predicate.
Declaration
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
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
protected override Expression CreateGroupKeyExpression(ParameterExpression parameterExpression)
Parameters
parameterExpression
The parameter expression, which will be used for grouping.
Returns
Expression that creates group key for the given item.
Overrides
CreateGroupSortExpression(Expression)
Creates sorting key expression that sorts the groups created from this descriptor using the group's key.
Declaration
public override Expression CreateGroupSortExpression(Expression groupingExpression)
Parameters
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