Class RadCalculatorElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadCalculatorElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, ICalculatorElement, ICalculatorButtonElementContainer
Constructors
RadCalculatorElement()
Initializes a new instance of the Rad
Declaration
public RadCalculatorElement()
Properties
CalculationBehavior
Gets or sets the calculation behavior.
Declaration
public StandardCalculatorCalculationBehavior CalculationBehavior { get; set; }
Property Value
ContentElement
Gets the Rad
Declaration
public RadCalculatorContentElement ContentElement { get; }
Property Value
Culture
Gets or sets current culture for the Rad
Declaration
public CultureInfo Culture { get; set; }
Property Value
System.
|
Implements
TextAreaElement
Gets the Rad
Declaration
public RadCalculatorTextAreaElement TextAreaElement { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the Rad
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The size that is available for element. |
Returns
System. The rectangle occupied by the element. Usually |
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CreateCalculationBehavior()
Creates the calculation behavior. responsible for the mathematic operations and history.
Declaration
protected virtual StandardCalculatorCalculationBehavior CreateCalculationBehavior()
Returns
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateContentElement()
Creates the Rad
Declaration
protected virtual RadCalculatorContentElement CreateContentElement()
Returns
CreateTextPartElement()
Creates the Rad
Declaration
protected virtual RadCalculatorTextAreaElement CreateTextPartElement()
Returns
GetFormattedValue()
Gets the formatted value.
Declaration
protected virtual string GetFormattedValue()
Returns
System.
|
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the Rad
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Rad |
Returns
System. The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnButtonMouseUp(RadCalculatorButton, MouseEventArgs)
Executed when a button is mouse up event is fired.
Declaration
public void OnButtonMouseUp(RadCalculatorButton button, MouseEventArgs e)
Parameters
Rad
|
System.
|
Implements
OnCalculatorKeyDown(KeyEventArgs)
Executed when a key down event is fired.
Declaration
public void OnCalculatorKeyDown(KeyEventArgs e)
Parameters
System.
|
Implements
OnCalculatorKeyPress(KeyPressEventArgs)
Executed when a key press event is fired.
Declaration
public void OnCalculatorKeyPress(KeyPressEventArgs e)
Parameters
System.
|
Implements
OnDisplayValueChanged()
Executed when the display value needs to be updated.
Declaration
public void OnDisplayValueChanged()
Implements
OnDisplayValueChanging(String, String)
Executed when the displayed value is about to be updated. Cancellable.
Declaration
public bool OnDisplayValueChanging(string oldValue, string newValue)
Parameters
System. The old value. |
System. The new value. |
Returns
System. A value indicating whether to cancel the operation. |
Implements
OnHistoryUpdated(String)
Executed when the history text needs to be updated.
Declaration
public void OnHistoryUpdated(string lastAction)
Parameters
System.
|
Implements
OnMemoryUpdated(Boolean)
Executed when the memory is updated.
Declaration
public void OnMemoryUpdated(bool hasMemory)
Parameters
System.
|
Implements
OnValueChanged()
OnValueChanging(ValueChangingEventArgs)
Fires the Value
Declaration
protected virtual void OnValueChanging(ValueChangingEventArgs args)
Parameters
ShouldArrangeChild(RadElement)
Gets a value indicating, whether a child will be arranged during the ArrangeOverride.
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
Rad The child. |
Returns
System. Whether the child will be arranged in ArrangeOverride. |
Overrides
ShouldMeasureChild(RadElement)
Gets a value indicating, whether a child will be measured during the MeasureOverride.
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
Rad The child. |
Returns
System. Whether the child will be measured in MeasureOverride. |
Overrides
UpdateText()
Updates the displayed text/value.
Declaration
protected virtual void UpdateText()
Events
ValueChanged
Fired when the displayed value has changed.
Declaration
public event EventHandler ValueChanged
Event Type
System.
|
ValueChanging
Fired when the display value is about to be changed.
Declaration
public event ValueChangingEventHandler ValueChanging