ClassRadCalculatorDropDownElement
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
RadCalculatorDropDownElement()
Initializes a new instance of the RadCalculatorDropDownElement class.
Declaration
public RadCalculatorDropDownElement()
Fields
DefaultPopupHeightProperty
Declaration
public static RadProperty DefaultPopupHeightProperty
Field Value
DefaultPopupWidthProperty
Declaration
public static RadProperty DefaultPopupWidthProperty
Field Value
IsDropDownShownProperty
Declaration
public static RadProperty IsDropDownShownProperty
Field Value
MinPopupHeightProperty
Declaration
public static RadProperty MinPopupHeightProperty
Field Value
MinPopupWidthProperty
Declaration
public static RadProperty MinPopupWidthProperty
Field Value
Properties
ArrowButton
Gets or sets the arrow button.
Declaration
public RadCalculatorArrowButtonElement ArrowButton { get; set; }
Property Value
BorderPrimitive
Gets the BorderPrimitive
Declaration
public BorderPrimitive BorderPrimitive { get; }
Property Value
CalculatorContentElement
Gets the content element.
Declaration
public RadCalculatorContentElement CalculatorContentElement { get; }
Property Value
CalculatorElement
Gets the calculator element.
Declaration
public RadCalculatorElement CalculatorElement { get; }
Property Value
DefaultPopupHeight
Gets or sets the default popup height.
DefaultPopupWidth
Gets or sets the default popup width.
EditorContentElement
Gets or sets the editor content element.
Declaration
public RadCalculatorEditorContentElement EditorContentElement { get; set; }
Property Value
FillPrimitive
Gets the FillPrimitive.
Declaration
public FillPrimitive FillPrimitive { get; }
Property Value
MemoryElement
Gets the memory element.
Declaration
public RadCalculatorMemoryElement MemoryElement { get; }
Property Value
MinPopupHeight
Gets or sets the minimum popup height.
MinPopupWidth
Gets or sets the minimum popup width.
Popup
Gets or sets the popup.
Declaration
public RadCalculatorEditorPopupControlBase Popup { get; set; }
Property Value
ReadOnly
Gets or sets a value indicating whether the RadCalculatorDropDownElement is read only.
Methods
ArrangeOverride(SizeF)
Arranges the calculator dropdown element and its children within the final size.
CreateChildElements()
Creates the child elements of the calculator dropdown element.
Declaration
protected override void CreateChildElements()
Overrides
CreatePopupForm()
Creates the popup form that contains the calculator.
Declaration
protected override RadPopupControlBase CreatePopupForm()
Returns
A new instance of RadPopupControlBase containing the calculator element.
Overrides
DisposeManagedResources()
Disposes managed resources and unwires event handlers.
Declaration
protected override void DisposeManagedResources()
Overrides
GetBorderThickness(bool)
Gets the border thickness based on the current border style.
GetClientRectangle(SizeF)
Gets the client rectangle after accounting for padding and border thickness.
Declaration
protected override RectangleF GetClientRectangle(SizeF finalSize)
Parameters
finalSize
The final size of the element.
Returns
A RectangleF representing the client area.
Overrides
GetPopupSize(RadPopupControlBase, bool)
Gets the size of the popup form.
Declaration
protected override Size GetPopupSize(RadPopupControlBase popup, bool measure)
Parameters
popup
The RadPopupControlBase instance.
measure
A value indicating whether to measure the popup.
Returns
A Size representing the popup dimensions.
Overrides
InitializeFields()
Initializes member fields to their default values.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the calculator dropdown element and its children.
OnCalculatorValueChanged()
Raises the CalculatorValueChanged event.
Declaration
protected virtual void OnCalculatorValueChanged()
OnCalculatorValueChanging(ValueChangingEventArgs)
Raises the CalculatorValueChanging event.
Declaration
protected virtual void OnCalculatorValueChanging(ValueChangingEventArgs e)
Parameters
e
An instance of ValueChangingEventArgs containing event data.
OnKeyDown(KeyEventArgs)
Handles key down events and forwards them to the calculator element when the popup is open.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
The KeyEventArgs containing event data.
Overrides
OnKeyPress(KeyPressEventArgs)
Handles key press events and forwards them to the calculator element when the popup is open.
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
e
The KeyPressEventArgs containing event data.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property changed events and updates the UI accordingly.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The RadPropertyChangedEventArgs containing event data.
Overrides
UnwirePopupFormEvents(RadPopupControlBase)
Unwires the popup form events from their handlers.
Declaration
protected override void UnwirePopupFormEvents(RadPopupControlBase popup)
Parameters
popup
The RadPopupControlBase instance to unwire events from.
Overrides
WirePopupFormEvents(RadPopupControlBase)
Wires the popup form events to their respective handlers.
Declaration
protected override void WirePopupFormEvents(RadPopupControlBase popup)
Parameters
popup
The RadPopupControlBase instance to wire events for.
Overrides
Events
CalculatorValueChanged
Fires when the value of the calculator is changing.
Declaration
public event EventHandler CalculatorValueChanged
Event Value
CalculatorValueChanging
Fires when the value of the calculator is changing.
Declaration
public event ValueChangingEventHandler CalculatorValueChanging
Event Value