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
565
restyle the XamNumericGrid up/down buttons?
posted

How do I restyle the XamNumericEditor up/down buttons?

I looked in the DefaultStyles, and it's kind of tough to follow.

  • XamNumericEditor style is empty; it's simply an alias to XamMaskedEditor.
  • XamMaskedEditor, however, doesn't appear to have any up/down buttons defined in there.  How does that work?

 

Any help would be greatly appreciated.

Parents
  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I can suggest you set the SpinButtonStyle property of the XamNumericEditor to A Style for the RepeatButton like this:

    <igEditors:XamNumericEditor SpinButtonDisplayMode="Always" Name="xamNumericEditor1" >
        <igEditors:XamNumericEditor.SpinButtonStyle>
            <Style TargetType="RepeatButton">
                <Setter Property="Background" Value="Red"/>
            </Style>
        </igEditors:XamNumericEditor.SpinButtonStyle>
    </igEditors:XamNumericEditor>
    

     

    Feel free to write me if you have further questions.

Reply Children