New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public abstract class AggregateFunction : INotifyPropertyChanged

Inheritance: objectAggregateFunction

Derived Classes: AggregateFunction<TElement, TResult>EnumerableAggregateFunctionBase

Implements: INotifyPropertyChanged

Constructors

C#
protected AggregateFunction()

Properties

Gets or sets the informative message to display as an illustration of the aggregate function.

C#
public string Caption { get; set; }
Property Value:

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.

C#
public virtual string FunctionName { get; set; }
Property Value:

The name of the function as visible from the group record.

Gets or sets a string that is used to format the result value.

C#
public virtual string ResultFormatString { get; set; }
Property Value:

The format string.

Methods

Creates the aggregate expression that is used for constructing expression tree that will calculate the aggregate result.

C#
public abstract Expression CreateAggregateExpression(Expression enumerableExpression)
Parameters:enumerableExpressionExpression

The grouping expression.

Returns:

Expression

Generates default name for this function using this type's name.

C#
protected virtual string GenerateFunctionName()
Returns:

string

Function name generated with the following pattern: {GetType().Name}_{GetHashCode()}.

Merges the specified item into the aggregate result according to the specified action.

C#
public virtual object Merge(object item, AggregateResultMergeAction mergeAction, AggregateResult originalAggregateResult, QueryableCollectionViewGroup group)
Parameters:itemobject

The item.

mergeActionAggregateResultMergeAction

The action.

originalAggregateResultAggregateResult

The original aggregate result.

groupQueryableCollectionViewGroup

The group which the item is being added to or removed from.

Returns:

object

The new value of the aggregate result.

Raise PropertyChanged Event.

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

The property name.

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged