Encapsulates the UI representation and functionality of RadCalculatorDropDown.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCalculatorDropDownElement : PopupEditorBaseElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IInputEditor, IValueEditor, ISupportInitialize
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadEditorElementEditorBaseElementPopupEditorBaseElementRadCalculatorDropDownElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadCalculatorDropDownElement class.
public RadCalculatorDropDownElement()
Fields
public static RadProperty DefaultPopupHeightProperty
public static RadProperty DefaultPopupWidthProperty
public static RadProperty IsDropDownShownProperty
public static RadProperty MinPopupHeightProperty
public static RadProperty MinPopupWidthProperty
Properties
Gets or sets the arrow button.
public RadCalculatorArrowButtonElement ArrowButton { get; set; }
Gets the BorderPrimitive
public BorderPrimitive BorderPrimitive { get; }
Gets the content element.
public RadCalculatorContentElement CalculatorContentElement { get; }
Gets the calculator element.
public RadCalculatorElement CalculatorElement { get; }
Gets or sets the default popup height.
public int DefaultPopupHeight { get; set; }
Gets or sets the default popup width.
public int DefaultPopupWidth { get; set; }
Gets or sets the editor content element.
public RadCalculatorEditorContentElement EditorContentElement { get; set; }
Gets the FillPrimitive.
public FillPrimitive FillPrimitive { get; }
Gets the memory element.
public RadCalculatorMemoryElement MemoryElement { get; }
Gets or sets the minimum popup height.
public int MinPopupHeight { get; set; }
Gets or sets the minimum popup width.
public int MinPopupWidth { get; set; }
Gets or sets the popup.
public RadCalculatorEditorPopupControlBase Popup { get; set; }
Gets or sets a value indicating whether the RadCalculatorDropDownElement is read only.
public bool ReadOnly { get; set; }
Methods
Creates the child elements of the calculator dropdown element.
protected override void CreateChildElements()
Overrides:
Creates the popup form that contains the calculator.
protected override RadPopupControlBase CreatePopupForm()
A new instance of RadPopupControlBase containing the calculator element.
Overrides:
Disposes managed resources and unwires event handlers.
protected override void DisposeManagedResources()
Overrides:
Gets the client rectangle after accounting for padding and border thickness.
protected override RectangleF GetClientRectangle(SizeF finalSize)
The final size of the element.
Returns:A RectangleF representing the client area.
Overrides:
Gets the size of the popup form.
protected override Size GetPopupSize(RadPopupControlBase popup, bool measure)
The RadPopupControlBase instance.
measureboolA value indicating whether to measure the popup.
Returns:A Size representing the popup dimensions.
Overrides:
Initializes member fields to their default values.
protected override void InitializeFields()
Overrides:
Raises the CalculatorValueChanged event.
protected virtual void OnCalculatorValueChanged()
Raises the CalculatorValueChanging event.
protected virtual void OnCalculatorValueChanging(ValueChangingEventArgs e)
An instance of ValueChangingEventArgs containing event data.
Handles key down events and forwards them to the calculator element when the popup is open.
protected override void OnKeyDown(KeyEventArgs e)
The KeyEventArgs containing event data.
Overrides:
Handles key press events and forwards them to the calculator element when the popup is open.
protected override void OnKeyPress(KeyPressEventArgs e)
The KeyPressEventArgs containing event data.
Overrides:
Handles property changed events and updates the UI accordingly.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs containing event data.
Overrides:
Unwires the popup form events from their handlers.
protected override void UnwirePopupFormEvents(RadPopupControlBase popup)
The RadPopupControlBase instance to unwire events from.
Overrides:
Wires the popup form events to their respective handlers.
protected override void WirePopupFormEvents(RadPopupControlBase popup)
The RadPopupControlBase instance to wire events for.
Overrides:
Events
Fires when the value of the calculator is changing.
public event EventHandler CalculatorValueChanged
Fires when the value of the calculator is changing.
public event ValueChangingEventHandler CalculatorValueChanging