Class RadCalculatorDropDownElement
Encapsulates the UI representation and functionality of RadCalculatorDropDown.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadCalculatorDropDownElement : PopupEditorBaseElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IInputEditor, IValueEditor, ISupportInitialize
Constructors
RadCalculatorDropDownElement()
Initializes a new instance of the RadCalculatorDropDownElement class.
Declaration
public RadCalculatorDropDownElement()
Fields
DefaultPopupHeightProperty
DefaultPopupWidthProperty
IsDropDownShownProperty
MinPopupHeightProperty
MinPopupWidthProperty
Properties
ArrowButton
Gets or sets the arrow button.
Declaration
public RadCalculatorArrowButtonElement ArrowButton { get; set; }
Property Value
RadCalculatorArrowButtonElement
|
BorderPrimitive
Gets the BorderPrimitive
Declaration
public BorderPrimitive BorderPrimitive { get; }
Property Value
BorderPrimitive
|
CalculatorContentElement
Gets the content element.
Declaration
public RadCalculatorContentElement CalculatorContentElement { get; }
Property Value
RadCalculatorContentElement
|
CalculatorElement
Gets the calculator element.
Declaration
public RadCalculatorElement CalculatorElement { get; }
Property Value
RadCalculatorElement
|
DefaultPopupHeight
Gets or sets the default popup height.
Declaration
public int DefaultPopupHeight { get; set; }
Property Value
System.Int32
|
DefaultPopupWidth
Gets or sets the default popup width.
Declaration
public int DefaultPopupWidth { get; set; }
Property Value
System.Int32
|
EditorContentElement
Gets or sets the editor content element.
Declaration
public RadCalculatorEditorContentElement EditorContentElement { get; set; }
Property Value
RadCalculatorEditorContentElement
|
FillPrimitive
Gets the FillPrimitive.
Declaration
public FillPrimitive FillPrimitive { get; }
Property Value
FillPrimitive
|
MemoryElement
Gets the memory element.
Declaration
public RadCalculatorMemoryElement MemoryElement { get; }
Property Value
RadCalculatorMemoryElement
|
MinPopupHeight
Gets or sets the minimum popup height.
Declaration
public int MinPopupHeight { get; set; }
Property Value
System.Int32
|
MinPopupWidth
Gets or sets the minimum popup width.
Declaration
public int MinPopupWidth { get; set; }
Property Value
System.Int32
|
Popup
Gets or sets the popup.
Declaration
public RadCalculatorEditorPopupControlBase Popup { get; set; }
Property Value
RadCalculatorEditorPopupControlBase
|
ReadOnly
Gets or sets a value indicating whether the RadCalculatorDropDownElement is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
System.Boolean
|
Value
Gets or sets the calculator value.
Declaration
public override object Value { get; set; }
Property Value
System.Object
|
Overrides
Methods
ArrangeOverride(SizeF)
Arranges the calculator dropdown element and its children within the final size.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final size allocated for the element. |
Returns
System.Drawing.SizeF
A System.Drawing.SizeF representing the actual size used by the element. |
Overrides
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
RadPopupControlBase
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(Boolean)
Gets the border thickness based on the current border style.
Declaration
protected virtual Padding GetBorderThickness(bool checkDrawBorder)
Parameters
System.Boolean
checkDrawBorder
A value indicating whether to check if the border should be drawn. |
Returns
System.Windows.Forms.Padding
A System.Windows.Forms.Padding representing the border thickness. |
GetClientRectangle(SizeF)
Gets the client rectangle after accounting for padding and border thickness.
Declaration
protected override RectangleF GetClientRectangle(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final size of the element. |
Returns
System.Drawing.RectangleF
A System.Drawing.RectangleF representing the client area. |
Overrides
GetPopupSize(RadPopupControlBase, Boolean)
Gets the size of the popup form.
Declaration
protected override Size GetPopupSize(RadPopupControlBase popup, bool measure)
Parameters
RadPopupControlBase
popup
The RadPopupControlBase instance. |
System.Boolean
measure
A value indicating whether to measure the popup. |
Returns
System.Drawing.Size
A System.Drawing.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.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
The available size for the element. |
Returns
System.Drawing.SizeF
A System.Drawing.SizeF representing the desired size of the element. |
Overrides
OnCalculatorValueChanged()
Raises the CalculatorValueChanged event.
Declaration
protected virtual void OnCalculatorValueChanged()
OnCalculatorValueChanging(ValueChangingEventArgs)
Raises the CalculatorValueChanging event.
Declaration
protected virtual void OnCalculatorValueChanging(ValueChangingEventArgs e)
Parameters
ValueChangingEventArgs
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
System.Windows.Forms.KeyEventArgs
e
The System.Windows.Forms.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
System.Windows.Forms.KeyPressEventArgs
e
The System.Windows.Forms.KeyPressEventArgs containing event data. |
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property changed events and updates the UI accordingly.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
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
RadPopupControlBase
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
RadPopupControlBase
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 Type
System.EventHandler
|
CalculatorValueChanging
Fires when the value of the calculator is changing.
Declaration
public event ValueChangingEventHandler CalculatorValueChanging
Event Type
ValueChangingEventHandler
|