Replies: 5 comments 12 replies
-
Let me add one more thing. I noticed that |
Beta Was this translation helpful? Give feedback.
-
I fully support adding nullability. Here is a collection of my other comments. |
Beta Was this translation helpful? Give feedback.
-
Also, to emphasize, when the backing type was double we got doubke.NaN for free to support this case. With the switch to decimal for rounding and precision errors that was lost. It was an oversight though. So we already had this functionality of indicating no user selection but then lost it. With that in mind, I dont think people should really vote for not doing anything to fix it. |
Beta Was this translation helpful? Give feedback.
-
Is changing back to |
Beta Was this translation helpful? Give feedback.
-
I thought of another solution for this. Decimal.NaN doesn't exist which is why we have this issue to begin with. However, Decimal.MinValue and Decimal.MaxValue do. These could be used as special case values and one or both of them treated as empty (like MinValue). https://docs.microsoft.com/en-us/dotnet/api/system.decimal?view=net-6.0#fields This shouldn't be an issue because MinValue and MaxValue are so far out of range for user input it wouldn't make sense to have these in the UI anyway. |
Beta Was this translation helpful? Give feedback.
-
Hey Folks,
** PLEASE NOTE: This poll is closed now. Please do not Vote anymore **
I personally have a use case where 0 is a totally valid number. But I want to indicate in the UI, that there is no value set atm. Instead, I want to display some kind of watermark in my
NumericUpDown
. See #7725 for more details. The initial PR I made #7794 was not considered as good practise. Therefore I would like to ask you, what your personal preference would be.It would be very nice if you vote in the below poll. If I missed an option, please comment.
19 votes ·
Beta Was this translation helpful? Give feedback.
All reactions