ClassGroupDescriptorBase
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
GroupDescriptorBase()
Declaration
protected GroupDescriptorBase()
Fields
DisplayContentProperty
Identifies the DisplayContent dependency property.
Declaration
public static readonly DependencyProperty DisplayContentProperty
Field Value
DependencyProperty
Properties
DisplayContent
Gets or sets the content which will be used to visually represent this descriptor.
Declaration
public virtual object DisplayContent { get; set; }
Property Value
SortDirection
Gets or sets the sort direction for this descriptor. If the value is null no sorting will be applied.
Declaration
public virtual ListSortDirection? SortDirection { get; set; }
Property Value
The sort direction. The default value is null.
Implements
Methods
CreateGroupKeyExpression(Expression)
Creates a group expression by delegating its creation to
CreateGroupKeyExpression(ParameterExpression), if
itemExpression is ParameterExpression,
otherwise throws ArgumentException
Declaration
public virtual Expression CreateGroupKeyExpression(Expression itemExpression)
Parameters
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
CreateGroupKeyExpression(ParameterExpression)
Creates a group expression that returns the grouping key for each item in a collection.
Declaration
protected virtual 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.
CreateGroupSortExpression(Expression)
Creates sorting key expression that sorts the groups created from this descriptor using the group's key.
Declaration
public virtual 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.
Implements
CycleSortDirection()
Changes the SortDescriptor to the next logical value.
Declaration
public void CycleSortDirection()