NumericUpDown
Note: You can check the Avalonia docs for the NumericUpDown and NumericUpDown API if you need more information.
For Avalonia.FuncUI's DSL properties you can check NumericUpDown.fs
The NumericUpDown is an editable numeric input field. The control has a up and down button spinner attached, used to increment and decrement the value in the input field. The value can also be incremented or decremented using the arrow keys or the mouse wheel when the control is selected.
Usage
Input with local currency
Adding the NumericUpDown.minimum
or NumericUpDown.maximum
attributes will limit the input for both button increment/decrement changes and text input changes.
For more information about rendering the controls value you can check out the documentation for Numeric String Formats.
Simple numeric input
If you want to disable the increment/decrement buttons you can add NumericUpDown.allowSpin false
. If you then also want to remove visibility of the buttons you can add NumericUpDown.showButtonSpinner false
.
State controlled input
Last updated