dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.05k stars 1.17k forks source link

[FR] Add NumericUpDown #8512

Open tim-gromeyer opened 10 months ago

tim-gromeyer commented 10 months ago

Hello,

I would like to request a feature for a NumericUpDown control. This is a common widget that allows users to enter and adjust numeric values using a textbox and arrows or the mouse wheel. It is available in other frameworks such as Qt (see https://doc.qt.io/qt-6/qdoublespinbox.html and https://doc.qt.io/qt-6/qspinbox.html).

I think this would be a useful addition to the graphics framework, as it would provide a more user-friendly and intuitive way to input numeric data. Currently, the only option is to use a textbox with a validator, which is not very convenient or elegant.

Thank you for your consideration and your hard work on this project.

pchaurasia14 commented 10 months ago

@tim-gromeyer - Yup, this looks a valid request. However, we will be taking up newer controls once we deliver on Win11 theming first.

Symbai commented 10 months ago

If this gets added I hope its more than just an integer spinner. A good NumericUpDown is difficult. It must support all kind of value types (float, integer, double etc). It must support all kind of format types (decimal, hexdecimal etc).

rampaa commented 5 months ago

Duplicate of #2096.

I agree that NumericUpDown is a pretty fundamental control that should be provided by WPF itself.