DoubleEditBox alternate units

Editors for WPF Forum

Posted 2 months 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 2 months 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 (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.