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
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
protected virtual RadCalculatorButton CreateCalculatorCommandButton(string text, CalculatorAction action)
protected virtual RadCalculatorButton CreateCalculatorDeleteButton(string text, CalculatorAction action)
protected virtual RadCalculatorButton CreateCalculatorDigitButton(string text, CalculatorAction action)
protected virtual RadCalculatorButton CreateCalculatorEqualsButton(string text, CalculatorAction action)
protected virtual RadCalculatorButton CreateCalculatorMemoryButton(string text, CalculatorAction action)
protected virtual RadCalculatorButton CreateCalculatorOperationButton(string text, CalculatorAction action)
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Disposes of managed resources including cached images and SVG images when the element is being disposed.
protected override void DisposeManagedResources()
Overrides:
protected virtual string GetButtonTextFromAction(CalculatorAction action)
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
public void OnButtonMouseUp(RadCalculatorButton button, MouseEventArgs e)
Implements:
Raises the KeyDown event.
protected override void OnKeyDown(KeyEventArgs e)
The key event arguments.
Overrides:
Raises the KeyPress event.
protected override void OnKeyPress(KeyPressEventArgs e)
The key press event arguments.
Overrides:
protected virtual void OnOwnerCultureChanged()
Gets a value indicating whether a child will be arranged during the ArrangeOverride(SizeF).
protected override bool ShouldArrangeChild(RadElement child)
The child element to check.
Returns:Whether the child will be arranged in ArrangeOverride.
Overrides:
Gets a value indicating, whether a child will be measured during the MeasureOverride.
protected override bool ShouldMeasureChild(RadElement child)
The child.
Returns:Whether the child will be measured in MeasureOverride.
Overrides: