Editing IntegerUpDown is not compatible with hexadecimal


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 1:30 AM by emartin


emartin wrote Nov 21, 2012 at 4: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 4:20 PM

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

emartin wrote Nov 21, 2012 at 4:22 PM

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