Class
RadCalculator

Represents a calculator control that extends the CalculatorBase class and implements the IThemable interface. The RadCalculator provides a customizable user interface for performing arithmetic calculations, with support for various themes. It features a dependency property for setting the font size, and it includes functionality to reset its theme, manage memory buttons, and handle automation peers for accessibility. The control is designed to be easily styled and integrated into applications, allowing for fine-tuned user interface behavior with respect to font and display settings.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
[Themable]
[TelerikToolboxCategory("Input")]
public class RadCalculator : CalculatorBase, IDisposable

Inheritance: objectCalculatorBaseRadCalculator

Implements: IDisposable

Inherited Members CalculatorBase.ValuePropertyCalculatorBase.MemoryValuePropertyCalculatorBase.PendingOperationPropertyCalculatorBase.OperationsPropertyCalculatorBase.MemoryButtonsVisibilityPropertyCalculatorBase.DecimalSeparatorPropertyCalculatorBase.HistoryPropertyKeyCalculatorBase.HistoryPropertyCalculatorBase.RegisterCommands()CalculatorBase.Dispose()CalculatorBase.OnValueChanged(decimal, decimal)CalculatorBase.OnMouseLeftButtonDown(MouseButtonEventArgs)CalculatorBase.Dispose(bool)CalculatorBase.ValueCalculatorBase.MemoryValueCalculatorBase.OperationsCalculatorBase.MemoryButtonsVisibilityCalculatorBase.HistoryCalculatorBase.ErrorMessageCalculatorBase.DecimalSeparatorCalculatorBase.ValueChanged

Constructors

RadCalculator()

Initializes a new instance of the RadCalculator class.

Declaration

cs-api-definition
public RadCalculator()

Fields

FontSizeProperty

Represent the FontSize property.

Declaration

cs-api-definition
public static readonly DependencyProperty FontSizeProperty

Field Value

DependencyProperty

Properties

FontSize

Gets or sets the size of the font.

Declaration

cs-api-definition
public double FontSize { get; set; }

Property Value

double

The size of the font.

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The class-specific AutomationPeer subclass to return.

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()