CalculatorBase
Represents a base class for calculator controls.
Definition
Namespace:Telerik.Windows.Controls.Calculator
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public class CalculatorBase : Control, IDisposable
Inheritance: objectCalculatorBase
Derived Classes:
Implements:
Constructors
public CalculatorBase()
Fields
DecimalSeparatorProperty
DependencyProperty
Identifies the DecimalSeparator dependency property.
public static readonly DependencyProperty DecimalSeparatorProperty
HistoryProperty
DependencyProperty
Identifies the DecimalSeparator dependency property.
public static readonly DependencyProperty HistoryProperty
HistoryPropertyKey
DependencyPropertyKey
Identifies the History dependency property.
public static readonly DependencyPropertyKey HistoryPropertyKey
MemoryButtonsVisibilityProperty
DependencyProperty
Identifies the MemoryButtonsVisibility dependency property.
public static readonly DependencyProperty MemoryButtonsVisibilityProperty
MemoryValueProperty
DependencyProperty
Identifies the MemoryValue dependency property.
public static readonly DependencyProperty MemoryValueProperty
OperationsProperty
DependencyProperty
Identifies the Operations dependency property.
public static readonly DependencyProperty OperationsProperty
PendingOperationProperty
DependencyProperty
Identifies the PendingOperation dependency property.
public static readonly DependencyProperty PendingOperationProperty
ValueProperty
DependencyProperty
Identifies the Value dependency property.
public static readonly DependencyProperty ValueProperty
Properties
Gets decimal separator depending on the current culture.
public string DecimalSeparator { get; set; }
Gets or sets the error message.
public string ErrorMessage { get; set; }
The error message.
MemoryButtonsVisibility
Visibility
Gets or sets calculator's memory buttons visibility.
public Visibility MemoryButtonsVisibility { get; set; }
The MemoryButtonsVisibility.
Gets CalculatorBase's current memory value.
public decimal? MemoryValue { get; set; }
Gets or sets calculator's operations source.
public OperationsSource Operations { get; set; }
The operations.
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
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.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.
Registers the used CalculatorBaseCommands.
public static void RegisterCommands()
Events
Occurs when the calculator's value is changed.
public event EventHandler<ValueChangedEventArgs> ValueChanged