Class GroupDescriptorBase
Serves as a base class for group descriptors. Holds SortDirection that will be used to sort the groups created from the descriptor.
Inherited Members
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public abstract class GroupDescriptorBase : DescriptorBase, ISuspendNotifications, IGroupDescriptor, INotifyPropertyChanged
Constructors
GroupDescriptorBase()
Declaration
protected GroupDescriptorBase()
Fields
DisplayContentProperty
Identifies the DisplayContent dependency property.
Declaration
public static readonly DependencyProperty DisplayContentProperty
Field Value
System.Windows.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
System.Object
|
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
System.Nullable<System.ComponentModel.ListSortDirection>
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 System.Linq.Expressions.ParameterExpression,
otherwise throws System.ArgumentException
Declaration
public virtual Expression CreateGroupKeyExpression(Expression itemExpression)
Parameters
System.Linq.Expressions.Expression
itemExpression
The instance expression, which will be used for grouping. |
Returns
System.Linq.Expressions.Expression
Expression that creates group key for the given item. |
Implements
Exceptions
System.ArgumentException
Parameter should be of type System.Linq.Expressions.ParameterExpression |
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
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. |
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
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. |