skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class CalculatorBase

Represents a base class for calculator controls.

Inheritance
System.Object
CalculatorBase
RadCalculator
RadCalculatorPicker
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.Windows.DependencyProperty

HistoryProperty

Identifies the DecimalSeparator dependency property.

Declaration
public static readonly DependencyProperty HistoryProperty
Field Value
System.Windows.DependencyProperty

HistoryPropertyKey

Identifies the History dependency property.

Declaration
public static readonly DependencyPropertyKey HistoryPropertyKey
Field Value
System.Windows.DependencyPropertyKey

MemoryButtonsVisibilityProperty

Identifies the MemoryButtonsVisibility dependency property.

Declaration
public static readonly DependencyProperty MemoryButtonsVisibilityProperty
Field Value
System.Windows.DependencyProperty

MemoryValueProperty

Identifies the MemoryValue dependency property.

Declaration
public static readonly DependencyProperty MemoryValueProperty
Field Value
System.Windows.DependencyProperty

OperationsProperty

Identifies the Operations dependency property.

Declaration
public static readonly DependencyProperty OperationsProperty
Field Value
System.Windows.DependencyProperty

PendingOperationProperty

Identifies the PendingOperation dependency property.

Declaration
public static readonly DependencyProperty PendingOperationProperty
Field Value
System.Windows.DependencyProperty

ValueProperty

Identifies the Value dependency property.

Declaration
public static readonly DependencyProperty ValueProperty
Field Value
System.Windows.DependencyProperty

Properties

DecimalSeparator

Gets decimal separator depending on the current culture.

Declaration
public string DecimalSeparator { get; set; }
Property Value
System.String

ErrorMessage

Gets or sets the error message.

Declaration
public string ErrorMessage { get; set; }
Property Value
System.String

The error message.

History

Gets the history.

Declaration
public string History { get; }
Property Value
System.String

MemoryButtonsVisibility

Gets or sets calculator's memory buttons visibility.

Declaration
public Visibility MemoryButtonsVisibility { get; set; }
Property Value
System.Windows.Visibility

The MemoryButtonsVisibility.

MemoryValue

Gets CalculatorBase's current memory value.

Declaration
public Nullable<Decimal> MemoryValue { get; set; }
Property Value
System.Nullable<System.Decimal>

Operations

Gets or sets calculator's operations source.

Declaration
public OperationsSource Operations { get; set; }
Property Value
OperationsSource

The operations.

Value

Gets CalculatorBase's current calculated value.

Declaration
public Decimal Value { get; set; }
Property Value
System.Decimal

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.Boolean disposing

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

OnMouseLeftButtonDown(MouseButtonEventArgs)

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

Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs e

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

OnValueChanged(Decimal, Decimal)

Raises the ValueChanged event.

Declaration
protected virtual void OnValueChanged(Decimal oldValue, Decimal newValue)
Parameters
System.Decimal oldValue

System.Decimal newValue

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.EventHandler<ValueChangedEventArgs>

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.