1

Closed

Editing IntegerUpDown is not compatible with hexadecimal

description

If I change the string format to in IntegerUpDown to hexadecimal like this:When I toggle up and down the it works fine. but if I where to edit the value by inputting directly, it would take it as an integer value instead of a hex value like you would expect.For example is i put in the value "254", then click up, the value would change to "FF".
Closed Jun 15, 2013 at 2:30 AM by emartin

comments

emartin wrote Nov 21, 2012 at 5:20 PM

Fixed in v1.9
Starting with version 1.9, you will be able to acheive hex editing with this approach:

<xctk:IntegerUpDown x:Name="double" FormatString="X" ParsingNumberStyle="HexNumber" />

Complete "FormatString" parsing cannot be acheived for all possible format strings. For more complex cases, overriding the "ConvertTextToValue()" and "ConvertValueToText()" allow to control you own convertion string -> value, value -> string convertion

emartin wrote Nov 21, 2012 at 5:20 PM

forget the x:Key="double", it is not relevant in the code sample

emartin wrote Nov 21, 2012 at 5:22 PM

Revised:
<xctk:IntegerUpDown FormatString="X" ParsingNumberStyle="HexNumber" />