Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NumericTex​tBoxDouble allow just Hex values

Is it possile to allow a user just to enter hex values (extactly 12 digits) in an numericTextBoxDouble (WPF)?

 

Thanks for our help

 

Keb Mo 

 

 

 

 

 

0 Kudos
Message 1 of 3
(5,295 Views)

The double data type does not support the standard Hexadecimal Format Specifier, but you can use an integer type and a custom range to limit the control to a maximum of 12 digits:

 

    <ni:NumericTextBoxUInt64 ValueFormatter="X12" Range="0,281474976710655" />

~ Paul H
0 Kudos
Message 2 of 3
(4,491 Views)

Thanks Paul

0 Kudos
Message 3 of 3
(4,423 Views)