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...

  • 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.

    • 690
      posted in reply to [Infragistics] Yanko

      Hi, great for the first point, that works.

      For the second, I'll see that later.

      Thx

      • 35319
        posted in reply to Jérôme

        Hello,

         

        Thank you for your feedback.

         

        If you need any further assistance on this matter, feel free to ask.

        • 690
          posted in reply to [Infragistics] Yanko

          Hi, it's effectively that I've done in our application (for the xne and the xamDataGrid (very useful for the zoomBar)).

          Thanks you.

          • 35319
            posted in reply to Jérôme

            Hello,

             

            I have been looking into your issue and it seems that you are trying to export the style for the XamNumericEditor by using the Expression Blend. This may cause an issue sometimes so I can suggest you use the default template and make you modifications :

             

            C:\Program Files (x86)\Infragistics\NetAdvantage 2012.1\WPF\DefaultStyles\Editors\EditorsGeneric

            C:\Program Files (x86)\Infragistics\NetAdvantage 2012.1\WPF\DefaultStyles\Editors\ EditorsGeneric_Brushes

            C:\Program Files (x86)\Infragistics\NetAdvantage 2012.1\WPF\DefaultStyles\Editors\ EditorsGeneric_Express

            • 690
              posted in reply to [Infragistics] Yanko

              Hi, sorry, I hope that sample will be more explicit :

              WpfApplication1.zip
              • 35319
                posted in reply to Jérôme

                Hello,

                 

                I have been looking into your sample application and I am a bit confused what exactly you would like to achieve. According to your first post you would like to have XamNumericEditor with black Background and white foreground and caret. In your sample application the background of the window is black and the background of the control is white. If it concerns to different one from your first issue please create a new forum thread explaining your last issue.

                 

                Thank you.