MahApps.Metro by Jan Karger, Dennis Daume, Brendan Forster, Paul Jenkins, Jake Ginnivan, Alex Mitchell

<PackageReference Include="MahApps.Metro" Version="2.1.1" />

.NET API 3,425,904 bytes

 NumericUpDown

public class NumericUpDown : Control
Represents a Windows spin box (also known as an up-down control) that displays numeric values.

Identifies the ButtonsAlignment dependency property.

Identifies the ChangeValueOnTextChanged dependency property.

public static readonly DependencyProperty CultureProperty

Identifies the Culture dependency property.

Identifies the DecimalPointCorrection dependency property.

public static readonly RoutedEvent DelayChangedEvent

Identifies the DelayChanged routed event.

public static readonly DependencyProperty DelayProperty

Identifies the Delay dependency property.

Identifies the HideUpDownButtons dependency property.

Identifies the InterceptArrowKeys dependency property.

Identifies the InterceptManualEnter dependency property.

Identifies the InterceptMouseWheel dependency property.

public static readonly DependencyProperty IntervalProperty

Identifies the Interval dependency property.

public static readonly DependencyProperty IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

public static readonly DependencyProperty MaximumProperty

Identifies the Maximum dependency property.

public static readonly RoutedEvent MaximumReachedEvent

Identifies the MaximumReached routed event.

public static readonly DependencyProperty MinimumProperty

Identifies the Minimum dependency property.

public static readonly RoutedEvent MinimumReachedEvent

Identifies the MinimumReached routed event.

Identifies the NumericInputMode dependency property.

Identifies the ParsingNumberStyle dependency property.

Identifies the SnapToMultipleOfInterval dependency property.

public static readonly DependencyProperty SpeedupProperty

Identifies the Speedup dependency property.

Identifies the StringFormat dependency property.

Identifies the SwitchUpDownButtons dependency property.

Identifies the TextAlignment dependency property.

Identifies the TrackMouseWheelWhenMouseOver dependency property.

Identifies the UpDownButtonsFocusable dependency property.

Identifies the UpDownButtonsWidth dependency property.

public static readonly RoutedEvent ValueChangedEvent

Identifies the ValueChanged routed event.

public static readonly RoutedEvent ValueDecrementedEvent

Identifies the ValueDecremented routed event.

public static readonly RoutedEvent ValueIncrementedEvent

Identifies the ValueIncremented routed event.

public static readonly DependencyProperty ValueProperty

Identifies the Value dependency property.

public ButtonsAlignment ButtonsAlignment { get; set; }

The ButtonsAlignment property specifies horizontal alignment of the up/down buttons.

public bool ChangeValueOnTextChanged { get; set; }

Gets or sets a value indicating whether the value will be changed directly on every TextBox text changed input event or when using the Enter key.

public CultureInfo Culture { get; set; }

Gets or sets a value indicating the culture to be used in string formatting and converting operations.

Gets or sets the decimal-point correction mode. The default is Inherits

public int Delay { get; set; }

Gets or sets the amount of time, in milliseconds, the NumericUpDown waits while the up/down button is pressed before it starts increasing/decreasing the Value for the specified Interval . The value must be non-negative.

public bool HideUpDownButtons { get; set; }

Gets or sets a value indicating whether the up/down button of the control are visible.

public bool InterceptArrowKeys { get; set; }

Gets or sets a value indicating whether the user can use the arrow keys Up and Down to change the value.

public bool InterceptManualEnter { get; set; }

Gets or sets a value indicating whether the user can enter text in the control.

public bool InterceptMouseWheel { get; set; }

Gets or sets a value indicating whether the user can use the mouse wheel to change the value.

public double Interval { get; set; }

Gets or sets the interval value for increasing/decreasing the Value .

public bool IsReadOnly { get; set; }

Gets or sets a value indicating whether the text can be changed by the use of the up or down buttons only.

public double Maximum { get; set; }

Maximum restricts the maximum value of the Value property.

public double Minimum { get; set; }

Minimum restricts the minimum value of the Value property.

public NumericInput NumericInputMode { get; set; }

Gets or sets which numeric input for this NumericUpDown is allowed.

public NumberStyles ParsingNumberStyle { get; set; }

Gets or sets the parsing number style for the value from text to numeric value.

public bool SnapToMultipleOfInterval { get; set; }

Indicates if the NumericUpDown should round the value to the nearest possible interval when the focus moves to another element.

public bool Speedup { get; set; }

public string StringFormat { get; set; }

Gets or sets the formatting for the displaying Value

public bool SwitchUpDownButtons { get; set; }

Gets or sets a value indicating whether the up/down buttons will be switched.

public TextAlignment TextAlignment { get; set; }

Gets or sets the horizontal alignment of the contents inside the text box.

public bool TrackMouseWheelWhenMouseOver { get; set; }

Gets or sets a value indicating whether the control must have the focus in order to change values using the mouse wheel.

public bool UpDownButtonsFocusable { get; set; }

Gets or sets whether the up and down buttons will got the focus when using them.

public double UpDownButtonsWidth { get; set; }

Gets or sets the width of the up/down buttons.

public double? Value { get; set; }

Gets or sets the value of the NumericUpDown.

Add / Remove DelayChangedEvent handler Event which will be fired from this NumericUpDown when its delay value has been changed.

Add / Remove MaximumReachedEvent handler Event fired from this NumericUpDown when its value has reached the maximum value.

Add / Remove MinimumReachedEvent handler Event fired from this NumericUpDown when its value has reached the minimum value.

Add / Remove ValueChangedEvent handler Event which will be fired from this NumericUpDown when its value has been changed.

Add / Remove ValueDecrementedEvent handler Event which will be fired from this NumericUpDown when its value was decremented.

Add / Remove ValueIncrementedEvent handler Event which will be fired from this NumericUpDown when its value was incremented.

public NumericUpDown()

protected virtual void OnDelayChanged(int oldDelay, int newDelay)

This method is invoked when the Delay property changes.

protected virtual void OnMaximumChanged(double oldMaximum, double newMaximum)

This method is invoked when the Maximum property changes.

protected virtual void OnMinimumChanged(double oldMinimum, double newMinimum)

This method is invoked when the Minimum property changes.

protected void OnPreviewTextInput(object sender, TextCompositionEventArgs e)

protected virtual void OnSpeedupChanged(bool oldSpeedup, bool newSpeedup)

This method is invoked when the Speedup property changes.

protected virtual void OnValueChanged(double? oldValue, double? newValue)

Raises the ValueChanged routed event.

public void SelectAll()