New to Telerik UI for WinForms? Start a free 30-day trial

Defines the host callbacks used by calculator content and calculation behavior to report input and display changes.

Definition

Properties

Gets the culture used to parse calculator input and supply the decimal-point button's separator.

C#
CultureInfo Culture { get; }

Methods

Notifies the host that the displayed value has changed.

C#
void OnDisplayValueChanged()

Notifies the host before the displayed value changes and allows it to cancel the change.

C#
bool OnDisplayValueChanging(string oldValue, string newValue)
Parameters:oldValuestring

The currently displayed value.

newValuestring

The proposed displayed value.

Returns:

bool

true to cancel the change; otherwise, false.

Updates the host's history display with the most recent calculator action.

C#
void OnHistoryUpdated(string lastAction)
Parameters:lastActionstring

The text to display for the most recent action.

Updates the host's memory indicator after the stored-memory state changes.

C#
void OnMemoryUpdated(bool hasMemory)
Parameters:hasMemorybool

true when a value is stored in memory; otherwise, false.