DoubleEditBox with a unit suffix

Editors for WPF Forum

Posted 14 years ago by Anis BEN RHOUMA
Version: 9.2.0515
Avatar
Hi,

I need to add a unit suffix in a DoubleEditBox, how can I do that?
Example : I would like to display in my DoubleEditBox 25.47 °C. When typing a value the user should not type this unit.

Thank you

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

You can include any custom elements inside the DoubleEditBox. So you could add a TextBlock with the text "°C", then place it to the right of the text. The DateTimeEditBox Custom Text QuickStart shows how to do this for the DateTimeEditBox, but the same concept applies to the DoubleEditBox.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.