Class GroupDescriptor<TElement, TKey, TSortingKey>
Allows grouping by a lambda expression.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public class GroupDescriptor<TElement, TKey, TSortingKey> : AggregatedGroupDescriptorBase, ISuspendNotifications, IGroupDescriptor, INotifyPropertyChanged, IAggregateFunctionsProvider
Type Parameters
TElement
|
TKey
|
TSortingKey
|
Constructors
GroupDescriptor()
Declaration
public GroupDescriptor()
Fields
GroupingExpressionProperty
Identifies the GroupingExpression dependency property.
Declaration
public static readonly DependencyProperty GroupingExpressionProperty
Field Value
System.Windows.DependencyProperty
|
GroupSortingExpressionProperty
Identifies the GroupSortingExpression dependency property.
Declaration
public static readonly DependencyProperty GroupSortingExpressionProperty
Field Value
System.Windows.DependencyProperty
|
Properties
GroupingExpression
Gets or sets the grouping predicate.
Declaration
public Expression<Func<TElement, TKey>> GroupingExpression { get; set; }
Property Value
System.Linq.Expressions.Expression<System.Func<TElement, TKey>>
The grouping predicate. |
GroupSortingExpression
Gets or sets the grouping and sorting predicate.
Declaration
public Expression<Func<IGrouping<TKey, TElement>, TSortingKey>> GroupSortingExpression { get; set; }
Property Value
System.Linq.Expressions.Expression<System.Func<System.Linq.IGrouping<TKey, TElement>, TSortingKey>>
The grouping and sorting 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
System.Linq.Expressions.ParameterExpression
parameterExpression
The parameter expression, which will be used for grouping. |
Returns
System.Linq.Expressions.Expression
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
System.Linq.Expressions.Expression
groupingExpression
The grouping expression, which represents the grouped items created from the CreateGroupKeyExpression(Expression). |
Returns
System.Linq.Expressions.Expression
Expression that represents the sort criteria for each group. |