AggregateFunction
Represents the basic class that supports creating functions that provide statistical information about a set of items.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Syntax:
public abstract class AggregateFunction : INotifyPropertyChanged
Inheritance: objectAggregateFunction
Derived Classes:
Implements:
Constructors
protected AggregateFunction()
Properties
Gets or sets the informative message to display as an illustration of the aggregate function.
public string Caption { get; set; }
The caption to display as an illustration of the aggregate function.
Gets or sets the name of the aggregate function, which appears as a property of the group record on which records the function works.
public virtual string FunctionName { get; set; }
The name of the function as visible from the group record.
Gets or sets a string that is used to format the result value.
public virtual string ResultFormatString { get; set; }
The format string.
Methods
Creates the aggregate expression that is used for constructing expression tree that will calculate the aggregate result.
public abstract Expression CreateAggregateExpression(Expression enumerableExpression)
The grouping expression.
Returns:Merges the specified item into the aggregate result according to the specified action.
public virtual object Merge(object item, AggregateResultMergeAction mergeAction, AggregateResult originalAggregateResult, QueryableCollectionViewGroup group)
The item.
mergeActionAggregateResultMergeActionThe action.
originalAggregateResultAggregateResultThe original aggregate result.
groupQueryableCollectionViewGroupThe group which the item is being added to or removed from.
Returns:The new value of the aggregate result.
Raise PropertyChanged Event.
protected virtual void OnPropertyChanged(string propertyName)
The property name.
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: