NumericTextBox
Описание
A custom Avalonia control designed for numeric input only. It supports various number formats and automatically blocks invalid input from both keyboard and clipboard.
Языки
- C#100%
NumericTextBox for Avalonia
A custom Avalonia control designed for numeric input only. It supports various number formats and automatically blocks invalid input from both keyboard and clipboard.
Features
- Restricts input to numeric values (integer or decimal);
- Supports multiple number styles (e.g., thousand separators, currency formats);
- Automatically filters non-numeric characters during clipboard paste.
Get NumericTextBox
Or add a package reference to your project file:
Include the NumericTextBox control theme
After installing the package, add the following to your file:
looks like and has the same behaviour. You can examine the sample here.
If the input text becomes invalid after changing or , the control applies the class and sets to true.
Subscribe to the event to receive notifications when invalid input is detected.