Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
880
xamNumericInput styling
posted

Hi,

i want to do some styling for xamNumericInput.

1.Spin Button(up/down) : BackGround to #232323 and arrow to black
2.TextBoxLineDrawingVisual : when user enter text in the xamNumericInput textBox there is one white line is getting shown like e.g. "_____546.0" i want to change it to "     546.0".
3.when user edit it/ change the text of it.  BorderBrush :  Grey (currently lightBlue).

a sample style would be great.

Regards,
Kamlendra

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello Kamlendra,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the XamNumericInput and the Styles it uses and modified them in order to achieve the 1st and 3rd requirement. For the 2nd one I set the XamNumericInput’s PromptChar Property to “ ”. If the Styles doesn’t satisfies all your needs, feel free to modify them as per your requirements. Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.

    XamNumericInputSpinButtonsStyle.zip
Reply Children