Posted 8 months ago by Avatar John Lutz

We recently upgraded to the new editors.   Where do I find documentation for working with DoubleEditBox formats?

Comments (2)

Posted 8 months ago by John Lutz

I found the document but it doesn't answer my question.

I'm trying to set DoubleEditBox.Format so it shows both a thousands separator, i.e., "N2" and units, i.e., "0.##' inches'".    "N2' inches'" doesn't work.

Posted 8 months ago by Actipro Software Support - Cleveland, OH, USA

Hi John,

As you saw, number formats are described in the "Editors / Edit Boxes / DoubleEditBox" topic in the documentation that comes with the product.  The main sample for DoubleEditBox also shows off a number of formats.  They basically use the standard .NET number format syntax.

If you use a custom format, you can't combine a standard one like "N2" with unit text.  You'd have to do something like this with custom format strings instead, which appears to work in the latest version:

<editors:DoubleEditBox MinWidth="150" Format="0.##' inches'" />

Actipro Software Support
Information The latest build of this product (2018.1 build 0670) was released 7 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.