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.
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.
Hi... this help me partialy....How can i remove that blank line so that it will help for my project....