Represents a numeric text box with buttons to increase or decrease the displayed value.
Namespace: MindFusion.UI.Silverlight
Assembly: MindFusion.Common.Wpf
C#
![]() |
---|
public class NumericUpDown : Control |
Visual Basic
![]() |
---|
Public Class NumericUpDown |
The NumericUpDown control enables users to select a numeric value by either typing the value in a text box or by using buttons to adjust the current value with a predefined amount. The current value of the control can be get or set through the Value property. The range of allowed values is specified through the Minimum and Maximum properties. The appearance of the increment and decrement buttons can be modified through the following properties: ButtonBackground, ButtonBorderBrush, ButtonBorderThickness, ButtonOverBackground, ButtonPressedBackground and ButtonSize.
The following example demonstrates a NumericUpDown control declared in XAML:
XAML
![]() |
---|
<ui:NumericUpDown Value="1" SmallChange="0.5" Width="80" Height="26" HorizontalAlignment="Left" VerticalAlignment="Top" /> |
The above code will produce result similar to the following:
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
MindFusion.UI.Silverlight.NumericUpDown