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
2940
Issue in XamNumericEditor
posted

Hi... I am using XamNumericEditor in which i am using spinner in that.but it is not working properly...

   <Editors:XamNumericEditor SpinButtonDisplayMode="Always" Grid.Column="4" Width="55" Height="25" Margin="5" HorizontalAlignment="Left"  IsEnabled="{Binding IsDocumentNumberEnabaled}" Value="{Binding DocumentNumber, Mode=TwoWay, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"  Mask="nnnnn" Format="{Binding Padding}" SpinIncrement="00001" Theme="[Current]" />

I have made Isreadonly=true in which if i want to change the number Red border will appear around the control and masking will appear like ( ___1 ) which should not happen.Please help me in solving this issue so that masking should not appear and he should not able to edit the control.he should only use the spinner to change the number.that to increment should be 1.

Parents
No Data
Reply
  • 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 suggest you handle the XamNumericEditor’s PreviewKeyDown event and put the following code on its handler:

    if (e.Key > Key.D0 && e.Key < Key.D9)
    {
        e.Handled = true;
    }
    

    This way you will be able to copy and paste into it. If you want to disable the paste function you can change the check in the handler.

     

    Feel free to write me if you have further questions.

Children