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 Grouping
Declaration
public static readonly DependencyProperty GroupingExpressionProperty
Field Value
System.
|
GroupSortingExpressionProperty
Identifies the Group
Declaration
public static readonly DependencyProperty GroupSortingExpressionProperty
Field Value
System.
|
Properties
GroupingExpression
Gets or sets the grouping predicate.
Declaration
public Expression<Func<TElement, TKey>> GroupingExpression { get; set; }
Property Value
System. 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. 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. The parameter expression, which will be used for grouping. |
Returns
System. 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. The grouping expression, which represents the grouped items
created from the Create |
Returns
System. Expression that represents the sort criteria for each group. |