ClassRadCalculatorContentElement
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
RadCalculatorContentElement(ICalculatorElement)
Creates new instance of RadCalculatorContentElement.
Declaration
public RadCalculatorContentElement(ICalculatorElement owner)
Parameters
owner
The owner of this instance.
Properties
Button0
Gets the button 0.
Declaration
public RadCalculatorButton Button0 { get; }
Property Value
The button 0.
Button1
Gets the button 1.
Declaration
public RadCalculatorButton Button1 { get; }
Property Value
The button 1.
Button2
Gets the button 2.
Declaration
public RadCalculatorButton Button2 { get; }
Property Value
The button 2.
Button3
Gets the button 3.
Declaration
public RadCalculatorButton Button3 { get; }
Property Value
The button 3.
Button4
Gets the button 4.
Declaration
public RadCalculatorButton Button4 { get; }
Property Value
The button 4.
Button5
Gets the button 5.
Declaration
public RadCalculatorButton Button5 { get; }
Property Value
The button 5.
Button6
Gets the button 6.
Declaration
public RadCalculatorButton Button6 { get; }
Property Value
The button 6.
Button7
Gets the button 7.
Declaration
public RadCalculatorButton Button7 { get; }
Property Value
The button 7.
Button8
Gets the button 8.
Declaration
public RadCalculatorButton Button8 { get; }
Property Value
The button 8.
Button9
Gets the button 9.
Declaration
public RadCalculatorButton Button9 { get; }
Property Value
The button 9.
ButtonAdd
Gets the button add.
Declaration
public RadCalculatorButton ButtonAdd { get; }
Property Value
The button add.
ButtonC
Gets the button C.
Declaration
public RadCalculatorButton ButtonC { get; }
Property Value
The button C.
ButtonCE
Gets the button CE.
Declaration
public RadCalculatorButton ButtonCE { get; }
Property Value
The button CE.
ButtonDelete
Gets the button delete.
Declaration
public RadCalculatorButton ButtonDelete { get; }
Property Value
The button delete.
ButtonDivide
Gets the button divide.
Declaration
public RadCalculatorButton ButtonDivide { get; }
Property Value
The button divide.
ButtonEquals
Gets the button equals.
Declaration
public RadCalculatorButton ButtonEquals { get; }
Property Value
The button equals.
ButtonMC
Gets the button MC.
Declaration
public RadCalculatorButton ButtonMC { get; }
Property Value
The button MC.
ButtonMR
Gets the button MR.
Declaration
public RadCalculatorButton ButtonMR { get; }
Property Value
The button MR.
ButtonMS
Gets the button MS.
Declaration
public RadCalculatorButton ButtonMS { get; }
Property Value
The button MS.
ButtonMminus
Gets the button mminus.
Declaration
public RadCalculatorButton ButtonMminus { get; }
Property Value
The button mminus.
ButtonMplus
Gets the button mplus.
Declaration
public RadCalculatorButton ButtonMplus { get; }
Property Value
The button mplus.
ButtonMultiply
Gets the button multiply.
Declaration
public RadCalculatorButton ButtonMultiply { get; }
Property Value
The button multiply.
ButtonPercent
Gets the button percent.
Declaration
public RadCalculatorButton ButtonPercent { get; }
Property Value
The button percent.
ButtonPoint
Gets the button point.
Declaration
public RadCalculatorButton ButtonPoint { get; }
Property Value
The button point.
ButtonReciprocal
Gets the button reciprocal.
Declaration
public RadCalculatorButton ButtonReciprocal { get; }
Property Value
The button reciprocal.
ButtonSign
Gets the button sign.
Declaration
public RadCalculatorButton ButtonSign { get; }
Property Value
The button sign.
ButtonSqrt
Gets the button SQRT.
Declaration
public RadCalculatorButton ButtonSqrt { get; }
Property Value
The button SQRT.
ButtonSubtract
Gets the button subtract.
Declaration
public RadCalculatorButton ButtonSubtract { get; }
Property Value
The button subtract.
GridLayout
Gets the grid layout.
Declaration
public GridLayout GridLayout { get; }
Property Value
The grid layout.
Owner
Gets the owner RadCalculatorElement.
Declaration
public ICalculatorElement Owner { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateCalculatorCommandButton(string, CalculatorAction)
Declaration
protected virtual RadCalculatorButton CreateCalculatorCommandButton(string text, CalculatorAction action)
Parameters
text
action
Returns
CreateCalculatorDeleteButton(string, CalculatorAction)
Declaration
protected virtual RadCalculatorButton CreateCalculatorDeleteButton(string text, CalculatorAction action)
Parameters
text
action
Returns
CreateCalculatorDigitButton(string, CalculatorAction)
Declaration
protected virtual RadCalculatorButton CreateCalculatorDigitButton(string text, CalculatorAction action)
Parameters
text
action
Returns
CreateCalculatorEqualsButton(string, CalculatorAction)
Declaration
protected virtual RadCalculatorButton CreateCalculatorEqualsButton(string text, CalculatorAction action)
Parameters
text
action
Returns
CreateCalculatorMemoryButton(string, CalculatorAction)
Declaration
protected virtual RadCalculatorButton CreateCalculatorMemoryButton(string text, CalculatorAction action)
Parameters
text
action
Returns
CreateCalculatorOperationButton(string, CalculatorAction)
Declaration
protected virtual RadCalculatorButton CreateCalculatorOperationButton(string text, CalculatorAction action)
Parameters
text
action
Returns
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
DisposeManagedResources()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
Declaration
protected override void DisposeManagedResources()
Overrides
GetButtonTextFromAction(CalculatorAction)
Declaration
protected virtual string GetButtonTextFromAction(CalculatorAction action)
Parameters
action
Returns
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnButtonMouseUp(RadCalculatorButton, MouseEventArgs)
Declaration
public void OnButtonMouseUp(RadCalculatorButton button, MouseEventArgs e)
Parameters
button
e
Implements
OnCalculatorKeyDown(KeyEventArgs)
Declaration
public void OnCalculatorKeyDown(KeyEventArgs e)
Parameters
e
Implements
OnCalculatorKeyPress(KeyPressEventArgs)
Declaration
public void OnCalculatorKeyPress(KeyPressEventArgs e)
Parameters
e
Implements
OnKeyDown(KeyEventArgs)
Raises the KeyDown event.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
The key event arguments.
Overrides
OnKeyPress(KeyPressEventArgs)
Raises the KeyPress event.
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
e
The key press event arguments.
Overrides
OnOwnerCultureChanged()
Declaration
protected virtual void OnOwnerCultureChanged()
ShouldArrangeChild(RadElement)
Gets a value indicating whether a child will be arranged during the ArrangeOverride(SizeF).
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
child
The child element to check.
Returns
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
child
The child.
Returns
Whether the child will be measured in MeasureOverride.
Overrides