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
690
Customize XamNumericEditor with Expression Blend
posted

Hi, I've two problems with the XamNumericEditor :

1 : If I set the bg and the foreColor to :

Background="Black" Foreground="White"

the cursor stays black when I write a number.

2 : If I set a new model customization in Expression Blend (without modifing it), when I run my WPF project, I can't enter values and I don't see the spin button...

Parents
No Data
Reply
  • 35319
    posted

    Hello,

     

    I have been looking into your questions and in order to change the color of the caret you need to create a Style for the ‘CaretElement’ in order to set its ‘Background’ property. This is my XAML code :




    and when I run it using Expression Blend, it seems everything goes right.

     

    If I have misunderstood you in any way, please modify my code or attach a sample application in order to investigate it.

     

    Looking forward to hearing from you.

Children