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

Represents a base class for calculator controls.

Definition

Namespace:Telerik.Windows.Controls.Calculator

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public class CalculatorBase : Control, IDisposable

Inheritance: objectCalculatorBase

Derived Classes: RadCalculatorRadCalculatorPicker

Implements: IDisposable

Constructors

C#
public CalculatorBase()

Fields

DecimalSeparatorProperty

DependencyProperty

Identifies the DecimalSeparator dependency property.

C#
public static readonly DependencyProperty DecimalSeparatorProperty

HistoryProperty

DependencyProperty

Identifies the DecimalSeparator dependency property.

C#
public static readonly DependencyProperty HistoryProperty

HistoryPropertyKey

DependencyPropertyKey

Identifies the History dependency property.

C#
public static readonly DependencyPropertyKey HistoryPropertyKey

Identifies the MemoryButtonsVisibility dependency property.

C#
public static readonly DependencyProperty MemoryButtonsVisibilityProperty

MemoryValueProperty

DependencyProperty

Identifies the MemoryValue dependency property.

C#
public static readonly DependencyProperty MemoryValueProperty

OperationsProperty

DependencyProperty

Identifies the Operations dependency property.

C#
public static readonly DependencyProperty OperationsProperty

PendingOperationProperty

DependencyProperty

Identifies the PendingOperation dependency property.

C#
public static readonly DependencyProperty PendingOperationProperty

ValueProperty

DependencyProperty

Identifies the Value dependency property.

C#
public static readonly DependencyProperty ValueProperty

Properties

Gets decimal separator depending on the current culture.

C#
public string DecimalSeparator { get; set; }

Gets or sets the error message.

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

The error message.

Gets the history.

C#
public string History { get; }

Gets or sets calculator's memory buttons visibility.

C#
public Visibility MemoryButtonsVisibility { get; set; }
Property Value:

The MemoryButtonsVisibility.

Gets CalculatorBase's current memory value.

C#
public decimal? MemoryValue { get; set; }

Gets or sets calculator's operations source.

C#
public OperationsSource Operations { get; set; }
Property Value:

The operations.

Gets CalculatorBase's current calculated value.

C#
public decimal Value { get; set; }

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Releases unmanaged and - optionally - managed resources.

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Invoked when an unhandled  routed event is raised on this element. Implement this method to add class handling for this event.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.

Raises the event.

C#
protected virtual void OnValueChanged(decimal oldValue, decimal newValue)
Parameters:oldValuedecimalnewValuedecimal

Registers the used CalculatorBaseCommands.

C#
public static void RegisterCommands()

Events

Occurs when the calculator's value is changed.

C#
public event EventHandler<ValueChangedEventArgs> ValueChanged