GroupDescriptorBase
Serves as a base class for group descriptors. Holds SortDirection that will be used to sort the groups created from the descriptor.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Syntax:
public abstract class GroupDescriptorBase : DescriptorBase, ISuspendNotifications, IGroupDescriptor, INotifyPropertyChanged
Inheritance: objectInheritanceContextPropagatorDescriptorBaseGroupDescriptorBase
Derived Classes:
Implements:
Inherited Members
Constructors
protected GroupDescriptorBase()
Fields
DisplayContentProperty
DependencyProperty
Identifies the DisplayContent dependency property.
public static readonly DependencyProperty DisplayContentProperty
Properties
Gets or sets the content which will be used to visually represent this descriptor.
public virtual object DisplayContent { get; set; }
Gets or sets the sort direction for this descriptor. If the value is null no sorting will be applied.
public virtual ListSortDirection? SortDirection { get; set; }
The sort direction. The default value is null.
Implements:
Methods
Creates a group expression by delegating its creation to
CreateGroupKeyExpression(ParameterExpression), if
itemExpression is ParameterExpression,
otherwise throws ArgumentException
public virtual Expression CreateGroupKeyExpression(Expression itemExpression)
The instance expression, which will be used for grouping.
Returns:Expression that creates group key for the given item.
Exceptions:Parameter should be of type ParameterExpression
Implements:
Creates a group expression that returns the grouping key for each item in a collection.
protected virtual Expression CreateGroupKeyExpression(ParameterExpression parameterExpression)
The parameter expression, which will be used for grouping.
Returns:Expression that creates group key for the given item.
Creates sorting key expression that sorts the groups created from this descriptor using the group's key.
public virtual 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.
Implements:
Changes the SortDescriptor to the next logical value.
public void CycleSortDirection()