Represents the content element of RadCalculatorDropDown.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCalculatorContentElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ICalculatorButtonElementContainer
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadCalculatorContentElement...
Implements:
Inherited Members
Constructors
Creates new instance of RadCalculatorContentElement.
public RadCalculatorContentElement(ICalculatorElement owner)
The owner of this instance.
Properties
Gets the button 0.
public RadCalculatorButton Button0 { get; }
The button 0.
Gets the button 1.
public RadCalculatorButton Button1 { get; }
The button 1.
Gets the button 2.
public RadCalculatorButton Button2 { get; }
The button 2.
Gets the button 3.
public RadCalculatorButton Button3 { get; }
The button 3.
Gets the button 4.
public RadCalculatorButton Button4 { get; }
The button 4.
Gets the button 5.
public RadCalculatorButton Button5 { get; }
The button 5.
Gets the button 6.
public RadCalculatorButton Button6 { get; }
The button 6.
Gets the button 7.
public RadCalculatorButton Button7 { get; }
The button 7.
Gets the button 8.
public RadCalculatorButton Button8 { get; }
The button 8.
Gets the button 9.
public RadCalculatorButton Button9 { get; }
The button 9.
Gets the button add.
public RadCalculatorButton ButtonAdd { get; }
The button add.
Gets the button C.
public RadCalculatorButton ButtonC { get; }
The button C.
Gets the button CE.
public RadCalculatorButton ButtonCE { get; }
The button CE.
Gets the button delete.
public RadCalculatorButton ButtonDelete { get; }
The button delete.
Gets the button divide.
public RadCalculatorButton ButtonDivide { get; }
The button divide.
Gets the button equals.
public RadCalculatorButton ButtonEquals { get; }
The button equals.
Gets the button MC.
public RadCalculatorButton ButtonMC { get; }
The button MC.
Gets the button mminus.
public RadCalculatorButton ButtonMminus { get; }
The button mminus.
Gets the button mplus.
public RadCalculatorButton ButtonMplus { get; }
The button mplus.
Gets the button MR.
public RadCalculatorButton ButtonMR { get; }
The button MR.
Gets the button MS.
public RadCalculatorButton ButtonMS { get; }
The button MS.
Gets the button multiply.
public RadCalculatorButton ButtonMultiply { get; }
The button multiply.
Gets the button percent.
public RadCalculatorButton ButtonPercent { get; }
The button percent.
Gets the button point.
public RadCalculatorButton ButtonPoint { get; }
The button point.
Gets the button reciprocal.
public RadCalculatorButton ButtonReciprocal { get; }
The button reciprocal.
Gets the button sign.
public RadCalculatorButton ButtonSign { get; }
The button sign.
Gets the button SQRT.
public RadCalculatorButton ButtonSqrt { get; }
The button SQRT.
Gets the button subtract.
public RadCalculatorButton ButtonSubtract { get; }
The button subtract.
Gets the grid layout.
public GridLayout GridLayout { get; }
The grid layout.
Gets the owner RadCalculatorElement.
public ICalculatorElement Owner { get; }
Methods
Creates the button used for a calculator command such as clear or clear-entry.
protected virtual RadCalculatorButton CreateCalculatorCommandButton(string text, CalculatorAction action)
The caption displayed on the button.
actionCalculatorActionThe command action raised by the button.
Returns:A command button element.
Creates the button used to delete the last entered character.
protected virtual RadCalculatorButton CreateCalculatorDeleteButton(string text, CalculatorAction action)
The caption displayed on the button.
actionCalculatorActionThe delete action raised by the button.
Returns:A delete button element.
Creates the button used to enter a digit.
protected virtual RadCalculatorButton CreateCalculatorDigitButton(string text, CalculatorAction action)
The caption displayed on the button.
actionCalculatorActionThe digit action raised by the button.
Returns:A digit button element.
Creates the button used to evaluate the pending calculation.
protected virtual RadCalculatorButton CreateCalculatorEqualsButton(string text, CalculatorAction action)
The caption displayed on the button.
actionCalculatorActionThe equals action raised by the button.
Returns:An equals button element.
Creates the button used to apply a memory operation.
protected virtual RadCalculatorButton CreateCalculatorMemoryButton(string text, CalculatorAction action)
The caption displayed on the button.
actionCalculatorActionThe memory action raised by the button.
Returns:A memory button element.
Creates the button used to perform an arithmetic operation.
protected virtual RadCalculatorButton CreateCalculatorOperationButton(string text, CalculatorAction action)
The caption displayed on the button.
actionCalculatorActionThe calculation action raised by the button.
Returns:An operation button element.
Creates the five-by-six button grid and populates it with calculation, command, memory, and digit buttons.
protected override void CreateChildElements()
Overrides:
Releases the reference to the calculator host before disposing the base visual element resources.
protected override void DisposeManagedResources()
Overrides:
Gets the default caption for a calculator action, including the current culture's decimal separator for the point action.
protected virtual string GetButtonTextFromAction(CalculatorAction action)
The action whose button caption is requested.
Returns:The action's symbol or label, or its name when no explicit caption is defined.
Initializes the lookup used to expose each calculator action's button.
protected override void InitializeFields()
Overrides:
Measures the button grid using the available size and returns that size for the content element.
Forwards a released calculator button to the host for action processing.
public void OnButtonMouseUp(RadCalculatorButton button, MouseEventArgs e)
The button that was released.
eMouseEventArgsThe mouse release data.
Implements:
Forwards key-down input to the calculator host.
public void OnCalculatorKeyDown(KeyEventArgs e)
The key and modifier data for the pressed key.
Implements:
Forwards key-press input to the calculator host.
public void OnCalculatorKeyPress(KeyPressEventArgs e)
The character data for the pressed key.
Implements:
Forwards key-down input to the calculator host before invoking the base handler.
protected override void OnKeyDown(KeyEventArgs e)
The key and modifier data for the pressed key.
Overrides:
Forwards key-press input to the calculator host before invoking the base handler.
protected override void OnKeyPress(KeyPressEventArgs e)
The character data for the pressed key.
Overrides:
Refreshes the decimal-point button caption from the calculator host's culture.
protected virtual void OnOwnerCultureChanged()
Excludes the button grid from the base child-arrange pass so it can be arranged explicitly.
protected override bool ShouldArrangeChild(RadElement child)
The child element being considered for arrangement.
Returns:false for the button grid; otherwise, the base arrangement decision.
Overrides:
Excludes the button grid from the base child-measure pass so it can be measured explicitly.
protected override bool ShouldMeasureChild(RadElement child)
The child element being considered for measurement.
Returns:false for the button grid; otherwise, the base measurement decision.
Overrides: