DoubleEditBox alternate units

Editors for WPF Forum

Posted 5 years ago by John Lutz
Version: 19.1.0682
Avatar

How hard would it be to extend DoubleEditBox to allow clients to parse the text string.   I would like to allow users to type in alternate units.   The format string has "in".   It would be nice is we could type in "20 cm" and convert to inches. 

Is there any way to inject code into the text to double translator?

Comments (1)

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

Hi John,

Each edit box has a protected TryConvertFromString method that does our default conversion.  You could override that with custom logic if you'd like.


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.