Tooltip for NumericUpDown

1 Answer 83 Views
NumericUpDown
alex
Top achievements
Rank 2
Bronze
Iron
Iron
alex asked on 28 Nov 2022, 06:55 PM | edited on 13 Jan 2023, 10:42 AM

Hello. I am trying to add a simple Tooltip to the RadNumericUpDown control. On the style, the Tooltip content is set to RelativeSource Self, Path Value.

The problem is that my value is double and the tooltip is 3 decimal points. The RadNumericUpDown can be configured to use 1,2, or 3 decimal points but the Tooltip content is always 3 decimal points.

I tried to bind the content to the Display Text (the TextBlock inside the RadNumericUpDown) but I found that you are not raising property changed for this property. 

 

How can I update the property to show the decimal numbers as the dependency property of the RadNumericUpDown?

1 Answer, 1 is accepted

Sort by
0
Accepted
alex
Top achievements
Rank 2
Bronze
Iron
Iron
answered on 29 Nov 2022, 04:26 PM | edited on 13 Jan 2023, 10:45 AM

I fixed that by creating a new DataTemplate for the tooltip. I created a TextBlock which is bound the tooltip's  placement target and changed the string format to 3 decimal points.

It will be nice if you fix this issue in the control itself...

Tags
NumericUpDown
Asked by
alex
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
alex
Top achievements
Rank 2
Bronze
Iron
Iron
Share this question
or