MahApps / MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
https://mahapps.com
MIT License
9.28k stars 2.45k forks source link

NumericUpDown input values #3847

Open alexej-stack opened 4 years ago

alexej-stack commented 4 years ago

Describe the bug

When you enter values ​​in the numericupdown field, it is possible to add text in addition to the number

Steps to reproduce

Снимок экрана (173) An expected. Снимок экрана (174)

Expected behavior

you cannot enter anything except numbers and separators.

Actual behavior

You can enter any character.

Environment

MahApps.Metro version: v2.0.0
Windows build number: Win10 1909 [Version 10.0.18363.836]
Visual Studio: 2019 16.6.0
Target Framework: .Net Core 3.1 (v4.5.2, v4.7.2)

Screenshots

lipchev commented 3 years ago

And what about scientific notation? image