Class CalculatorBase
Represents a base class for calculator controls.
Inheritance
Namespace: Telerik.Windows.Controls.Calculator
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public class CalculatorBase : Control, IDisposable
Constructors
CalculatorBase()
Declaration
public CalculatorBase()
Fields
DecimalSeparatorProperty
Identifies the DecimalSeparator dependency property.
Declaration
public static readonly DependencyProperty DecimalSeparatorProperty
Field Value
System.
|
HistoryProperty
Identifies the DecimalSeparator dependency property.
Declaration
public static readonly DependencyProperty HistoryProperty
Field Value
System.
|
HistoryPropertyKey
Identifies the History dependency property.
Declaration
public static readonly DependencyPropertyKey HistoryPropertyKey
Field Value
System.
|
MemoryButtonsVisibilityProperty
Identifies the MemoryButtonsVisibility dependency property.
Declaration
public static readonly DependencyProperty MemoryButtonsVisibilityProperty
Field Value
System.
|
MemoryValueProperty
Identifies the MemoryValue dependency property.
Declaration
public static readonly DependencyProperty MemoryValueProperty
Field Value
System.
|
OperationsProperty
Identifies the Operations dependency property.
Declaration
public static readonly DependencyProperty OperationsProperty
Field Value
System.
|
PendingOperationProperty
Identifies the PendingOperation dependency property.
Declaration
public static readonly DependencyProperty PendingOperationProperty
Field Value
System.
|
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
System.
|
Properties
DecimalSeparator
Gets decimal separator depending on the current culture.
Declaration
public string DecimalSeparator { get; set; }
Property Value
System.
|
ErrorMessage
Gets or sets the error message.
Declaration
public string ErrorMessage { get; set; }
Property Value
System. The error message. |
History
Gets the history.
Declaration
public string History { get; }
Property Value
System.
|
MemoryButtonsVisibility
Gets or sets calculator's memory buttons visibility.
Declaration
public Visibility MemoryButtonsVisibility { get; set; }
Property Value
System. The MemoryButtonsVisibility. |
MemoryValue
Gets CalculatorBase's current memory value.
Declaration
public Nullable<Decimal> MemoryValue { get; set; }
Property Value
System.
|
Operations
Gets or sets calculator's operations source.
Declaration
public OperationsSource Operations { get; set; }
Property Value
Operations The operations. |
Value
Gets CalculatorBase's current calculated value.
Declaration
public Decimal Value { get; set; }
Property Value
System.
|
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.
|
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled System.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System. The System. |
OnValueChanged(Decimal, Decimal)
Raises the Value
Declaration
protected virtual void OnValueChanged(Decimal oldValue, Decimal newValue)
Parameters
System.
|
System.
|
RegisterCommands()
Registers the used CalculatorBaseCommands.
Declaration
public static void RegisterCommands()
Events
ValueChanged
Occurs when the calculator's value is changed.
Declaration
public event EventHandler<ValueChangedEventArgs> ValueChanged
Event Type
System.
|