WPF NumericBox allowing Hex or Bin Numbers

Posted by: mayur.purandare on 21 October 2018, 6:34 pm EST

    • Post Options:
    • Link

    Posted 21 October 2018, 6:34 pm EST

    Is there any way such that the C1 NumericBox can be used to enter Hexadecimal or Binary Text only.

    Thank you.

  • Posted 22 October 2018, 10:48 pm EST

    Hello Mayur,

    As per my understanding it not possible to have both formats in a single C1NumericBox instance. So, I have implemented these in two seperate C1NumericBox using Format and handling the PreviewKeyDown event.

    Please refer attached sample application “” and let me know, if there are any issues.

    Thanks,

    RuchirFormat_C1NumericBox.zip

  • Posted 23 October 2018, 2:43 pm EST

    Thanks a lot Ruchir.

    I will go through this and will get back.

    Regards,

    Mayur

  • Posted 23 October 2018, 6:27 pm EST

    Hello Ruchir,

    Thank you for sharing the sample.

    I tried to run it.

    It worked well for Hexadecimal.

    However, for binary, the up-down buttons were not working. Decimal digits were also getting added.

    There is only event “ValueChanged” which gets triggered by changing the value using up-down buttons on the control. However it does not allow to intercept.

  • Posted 25 October 2018, 5:38 pm EST

    Hello Ruchir,

    Thank you so much for sharing the sample.

    I will go through this and will get back.

  • Posted 25 October 2018, 9:14 pm EST

    Hello Mayur,

    I have forwarded your request [ID: 350215] to support Binary format in C1NumericBox.

    Meanwhile, I modified and attached the sample for Binary values. Could you please test the same at your end and share your observations.

    Thanks,

    Ruchir

    Format_C1NumericBox.zip

  • Posted 31 October 2018, 5:12 pm EST

    Hello Mayur,

    Developer has made few modifications in the sample we shared earlier for supporting Binary format in C1NumericBox. Therefore, we request you to kindly refer to the attached sample.

    Let me know, if you find some issues using it.

    Thanks,

    Ruchir

    Format_C1NumericBoxEnhanced.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels