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
60
Size of XamNumericEditor SpinButtons
posted

Hi,

I'm new to Infragistics and trying to use XamNumericEditor in a touch based UI where I want the Up Down SpinButtons to be bigger in size to make it better in usability.

Could you please suggest a way to do it?

Thanks,

Rituraj

Parents
No Data
Reply
  • 6365
    Verified Answer
    Offline posted

    Hello Rituraj,

    In order to manipulate the size of the spin buttons inside of the XamNumericEditor, an approach I can suggest you is to set the SpinButtonStyle of the editor by creating a Style that is targeting the RepeatButton class. This way you should be able to directly set it's Width or Height properties.

    For Example:

    <igEditors:XamNumericEditor.SpinButtonStyle>
        <Style TargetType="RepeatButton">
            <Setter Property="Width" Value="50" />
        </Style>
    </igEditors:XamNumericEditor.SpinButtonStyle>

    I have also prepared a sample application where this behavior has been implemented.
    If you require any further assistance on this matter, please do not hesitate to ask.

    XamNumericEditor_spinButtons.zip
Children