NumericTextBox is a control designed to render a text box but allows only numeric input (digits, the decimal point, and the minus, percentage, or dollar signs). If defined, it also renders spin buttons that enable users to increase and decrease the value entered by predefined increments, or steps.
You can define your NumericTextBox to render for general numbering, percentage, and currency.
12.4.1. Implementing Value Range and Spin Buttons
The following example shows how to define a range of allowed values and also how to enable or disable the spin buttons in a NumericTextBox. Listing 12-9 demonstrates how to implement a range of values and to work with the spin buttons. Figure 12-9 shows the example running.