[Feature request] NumericUpDown with a ValueLabel property
See original GitHub issueIs your feature request related to a problem? Please describe.
Currently NumericUpDown
allow a FormatString, but when used with custom text or units, it will mess the value when user edit the value on the box but not when they use the spinner alone, also not pratical and easy to mess up.
Describe the solution you’d like
- Have a property, like:
ValueLabel
that allow us to set whatever we want, eg:mm/min
. ValueLabelPosition
enum(Left, AfterValue, Right), with default to AfterValue
That way we can have a locked text that don’t mess with the input and with good integrated design Here an ugly sample i did, i just put a TextBox disabled after the NumericUpDown to illustrate the solution:
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
NumericUpDown.Value Property (System.Windows.Forms)
When the Value property is set, the new value is validated to be between the Minimum and Maximum values. Following this, the UpdateEditText...
Read more >NumericUpDown Class (System.Windows.Forms)
Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives...
Read more >How to set value property of NumericUpDown from a string ...
1 Answer 1 · This kind of "Try it and report back" troubleshooting is not really appropriate for SO. · thanks for your...
Read more >Binding a NumericUpDown control to an object that ...
I have a NumericUpDown control that is bound to an int property on a business object which implements INotifyPropertyChanged.
Read more >sitemap-forums1.xml
... https://www.syncfusion.com/forums/1526/passwordchar-property-of-text-in-a-datagrid https://www.syncfusion.com/forums/1531/feature-request ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I forgot to mention, it should be Template object:
For example https://github.com/AvaloniaUI/Avalonia/blob/0b9cd49a11c4ef026d2ed6cf07e7aa718ba5a974/src/Avalonia.Themes.Default/TextBox.xaml#L110
Using custom control / classes