DoubleEditBox alternate units

Editors for WPF Forum

The latest build of this product (v2019.1 build 0682) was released 27 days ago, which was before this thread was created.
Posted 13 days 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 13 days 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

Add Comment

Please log in to a validated account to post comments.