DoubleEditBox

Editors for WPF Forum

Posted 2 years ago by John Lutz
Version: 17.2.0661
Avatar

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

Comments (2)

Posted 2 years ago by John Lutz
Avatar

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 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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

The latest build of this product (v2018.1 build 0675) was released 12 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.