RadNumericUpDown
Represents a RadNumericUpDown control.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
[TelerikToolboxCategory("Input")]
[Themable]
public class RadNumericUpDown : RadRangeBase
Inheritance: objectRadRangeBaseRadNumericUpDown
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the RadNumericUpDown class.
public RadNumericUpDown()
Fields
AreButtonsTabStopsProperty
DependencyProperty
Identifies the AreButtonsTabStops dependency property.
public static readonly DependencyProperty AreButtonsTabStopsProperty
CustomUnitProperty
DependencyProperty
Identifies the CustomUnit dependency property.
public static readonly DependencyProperty CustomUnitProperty
DecreaseButtonContentTemplateProperty
DependencyProperty
Identifies the IncreaseButtonContentTemplate dependency property.
[Obsolete("This is property is not used with the current implementation of RadNumericUpDown and will be deleted in the next official release.")]
public static readonly DependencyProperty DecreaseButtonContentTemplateProperty
HideTrailingZerosProperty
DependencyProperty
Identifies the HideTrailingZeros dependency property.
public static readonly DependencyProperty HideTrailingZerosProperty
IncreaseButtonContentTemplateProperty
DependencyProperty
Identifies the IncreaseButtonContentTemplate dependency property.
[Obsolete("This is property is not used with the current implementation of RadNumericUpDown and will be deleted in the next official release.")]
public static readonly DependencyProperty IncreaseButtonContentTemplateProperty
IsEditableProperty
DependencyProperty
Identifies the IsEditable dependency property.
public static readonly DependencyProperty IsEditableProperty
IsHighlightedProperty
DependencyProperty
Gets or sets a value indicating whether this instance is highlighted.
public static readonly DependencyProperty IsHighlightedProperty
IsIntegerProperty
DependencyProperty
Identifies the IsInteger dependency property.
public static readonly DependencyProperty IsIntegerProperty
IsReadOnlyProperty
DependencyProperty
Identifies the IsReadOnly dependency property.
public static readonly DependencyProperty IsReadOnlyProperty
NullValueProperty
DependencyProperty
Identifies the NullValue dependency property.
public static readonly DependencyProperty NullValueProperty
NumberDecimalDigitsProperty
DependencyProperty
Identifies the NumberDecimalDigits dependency property.
public static readonly DependencyProperty NumberDecimalDigitsProperty
NumberDecimalSeparatorProperty
DependencyProperty
Identifies the NumberDecimalSeparator dependency property.
public static readonly DependencyProperty NumberDecimalSeparatorProperty
NumberFormatInfoProperty
DependencyProperty
Identifies the NumberFormatInfo dependency property.
public static readonly DependencyProperty NumberFormatInfoProperty
ShowButtonsProperty
DependencyProperty
Identifies the ShowButtons dependency property.
public static readonly DependencyProperty ShowButtonsProperty
ShowTextBoxProperty
DependencyProperty
Identifies the ShowTextBox dependency property.
public static readonly DependencyProperty ShowTextBoxProperty
UpdateValueEventProperty
DependencyProperty
Identifies the UpdateValueEvent dependency property.
public static readonly DependencyProperty UpdateValueEventProperty
UpdateValueToMatchTextOnLostFocusProperty
DependencyProperty
Identifies the UpdateValueToMatchTextOnLostFocusProperty dependency property.
public static readonly DependencyProperty UpdateValueToMatchTextOnLostFocusProperty
ValueFormatProperty
DependencyProperty
Identifies the ValueFormat dependency property.
public static readonly DependencyProperty ValueFormatProperty
Properties
Read only property identifies if the increase / decrease buttons should be tab stops. Set to true when the ShowTextBox is set to false. This is a dependency property.
public bool AreButtonsTabStops { get; }
Gets the current text content held by the textbox. This is a dependency property.
public string ContentText { get; }
Gets or sets additional string to appear in the end of numeric values. This is a dependency property.
public string CustomUnit { get; set; }
DecreaseButtonContentTemplate
DataTemplate
Gets or sets the data template of the DecreaseButton. This is a dependency property.
[Obsolete("This is property is not used with the current implementation of RadNumericUpDown and will be deleted in the next official release.")]
public DataTemplate DecreaseButtonContentTemplate { get; set; }
Gets or sets whether the trailing zeros should be displayed or not. This is a dependency property.
public bool HideTrailingZeros { get; set; }
IncreaseButtonContentTemplate
DataTemplate
Gets or sets the data template of the IncreaseButton. This is a dependency property.
[Obsolete("This is property is not used with the current implementation of RadNumericUpDown and will be deleted in the next official release.")]
public DataTemplate IncreaseButtonContentTemplate { get; set; }
Gets or sets the value indicating whether the control is editable or not. This is a dependency property.
public bool IsEditable { get; set; }
Gets or sets a value indicating whether this control is highlighted.
public bool IsHighlighted { get; set; }
Gets or sets a value indicating whether the format is integer.
public bool IsInteger { get; set; }
Gets or sets the value indicating whether the control is readonly or not. This is a dependency property.
public bool IsReadOnly { get; set; }
Gets or sets string that is displayed when the Value is null.
public string NullValue { get; set; }
The null value.
Gets or sets the number of decimal digits that will be displayed in the control.
public int NumberDecimalDigits { get; set; }
Gets or sets NumberDecimalSeparator string to be used. This is a dependency property.
public string NumberDecimalSeparator { get; set; }
Gets or sets the NumberFormatInfo value, for more info see
public NumberFormatInfo NumberFormatInfo { get; set; }
Gets or sets the ShowButtons property that indicates whether the up and down buttons are visible.
public bool ShowButtons { get; set; }
Gets or sets a value indicating whether the textbox of RadNumericUpDown is visible.
public bool ShowTextBox { get; set; }
Gets or sets the way the Value property is updated. This is a dependency property.
public UpdateValueEvent UpdateValueEvent { get; set; }
Gets or sets whether to update the Value property to match the current formatted text on LostFocus. This is a dependency property.
public bool UpdateValueToMatchTextOnLostFocus { get; set; }
Gets or sets the current value format. This is a dependency property.
public ValueFormat ValueFormat { get; set; }
Methods
Adds the provided delta to the current value.
protected override void ChangeValue(double delta)
The amount to add to Value.
Overrides:
Formats the display value when the control is not focused.
public virtual string FormatDisplay()
Returns value that is displayed when the control doesn't have focus.
Formats the value when the control is in focus and the user is editing the content.
public virtual string FormatEdit()
Return the value when the control is in focus and the user is editing the content.
Overrides OnApplyTemplate and attach all necessary events to the controls. TODO: change the binding to TemplateBinding.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Called before the event occurs.
protected override void OnGotFocus(RoutedEventArgs e)
The data for the event.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Invoked just before the event is raised by this element. Implement this method to add class handling for this event.
protected override void OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs e)
A DependencyPropertyChangedEventArgs that contains the event data.
Called before the event occurs.
protected void OnKeyDown(object sender, KeyEventArgs e)
The sender of the event.
eKeyEventArgsThe data for the event.
Called before the event occurs.
protected override void OnLostFocus(RoutedEventArgs e)
The data for the event.
Called before the event occurs.
protected override void OnMouseEnter(MouseEventArgs e)
The data for the event.
Called before the event occurs.
protected override void OnMouseLeave(MouseEventArgs e)
The data for the event.
Called before the MouseLeftButtonDown event occurs.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Invoked when an unhandled System.Windows.Input.Mouse.MouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected override void OnMouseWheel(MouseWheelEventArgs e)
The System.Windows.Input.MouseWheelEventArgs that contains the event data.
Raises the event.
protected override void OnValueChanged(RadRangeBaseValueChangedEventArgs e)
The RadRangeBaseValueChangedEventArgs instance containing the event data.
Overrides:
Selects the entire content of RadNumericUpDown textbox.
public void SelectAll()