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

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

Constructors

Initializes a new instance of the RadCalculator class.

C#
public RadCalculator()

Fields

FontSizeProperty

DependencyProperty

Represent the FontSize property.

C#
public static readonly DependencyProperty FontSizeProperty

Properties

Gets or sets the size of the font.

C#
public double FontSize { get; set; }
Property Value:

The size of the font.

Methods

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.

C#
public override void OnApplyTemplate()

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

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The class-specific AutomationPeer subclass to return.

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Resets the theme.

C#
public void ResetTheme()