Represents a numeric text box with buttons to increase or decrease the displayed value.
Namespace: MindFusion.UI.Wpf
Assembly: MindFusion.Common.Wpf
SyntaxC#
Copy Code
|
|---|
public class NumericUpDown : Control |
Visual Basic
Copy Code
|
|---|
Public Class NumericUpDown |
RemarksThe 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.
ExampleThe following example demonstrates a NumericUpDown control declared in XAML:
XAML
Copy Code
|
|---|
<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:
Inheritance HierarchySystem.Object![]()
System.Windows.Threading.DispatcherObject![]()
System.Windows.DependencyObject![]()
System.Windows.Media.Visual![]()
System.Windows.UIElement![]()
System.Windows.FrameworkElement![]()
System.Windows.Controls.Control![]()
MindFusion.UI.Wpf.NumericUpDown
See Also