Hexadecimal format

Hi,
Is it possible to display number in hexadecimal format?

Thanks
Damiano

4 Replies

DA Damiano May 5, 2015 04:08 PM UTC

Sorry...I'm talking about updown control


MA Muthukumar A Syncfusion Team May 6, 2015 05:18 AM UTC

Hi Damano,

Thanks for your interest in Syncfusion Products.

Since UpDown is specifically implemented to display "Double" values , we can not force it to display HexaDecimal values. 

Please let us know in case of any other concerns.

Regards,
Muthukumar A


DA Damiano May 6, 2015 10:04 AM UTC

I tried to use a sfMaskedEdit but I can only insert one character.
How can I set it to accept only hex input?

<syncfusion:SfMaskedEdit Grid.Column="1" HorizontalAlignment="Left" Margin="208,15.02,0,0" 
                                     Text="SfMaskedEdit" VerticalAlignment="Top" 
                                     MaskType="Regular" Mask="[0-9A-F]" Width="92"/>



VR Vijayalakshmi Roopkumar Syncfusion Team May 7, 2015 06:45 AM UTC

Hi Damano,


Thank you for your update,


We have modified the sample that tries to meet your requirement. You can achieve your requirement using this Mask 0[xX][0-9a-fA-F]+" with the MaskType Regex.

The same has been demonstrated using the following code snippet:


CodeSnippet



<syncfusion:SfMaskedEdit Grid.Column="1" HorizontalAlignment="Left" Margin="208,15.02,0,0" Text="SfMaskedEdit" VerticalAlignment="Top" MaskType="Regex" Mask="0[xX][0-9a-fA-F]+" Width="92"/>




Please download the sample from the below location:


Sample:SfmaskedEdit_119020.zip


And for more information about the Mask and MaskType, please refer our guideline about the SfMaskedEdit from the following link:


Link: http://help.syncfusion.com/ug/wpf/index.html#!Documents/masktype.htm

Please let us know if you have any other concerns,


Regards,

Vijayalakshmi V.R.




Loader.
Up arrow icon