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,
The ValueConstraint is not a FrameworkElement or FrameworkContentElement and furthermore not a visual child of the editor, it does not inherit the Binding context from the editor and you are not able to bind it to an element. The above binding issue is simply a limitation of WPF framework.
Hope this helps you.
Thanks it is working fine.... can we binding XamMaskedEditor such a way that Minimum value is binded to the value say 2 and if i decrement spinner it should not go beyond '2' i.e. '1'.I am binding it to
MinInclusive="{Binding NextDocumentNumber}" MinExclusive="{Binding NextDocumentNumber}" where NextDocumentNumber will contain value.How can i do it and is their any property to achieve this?
Plz help me in solving this.....
You can set the Editor’s PromptChar Property to “ ”(empty string, or empty space) in order to remove the underline in editmode.
Hi... this help me partialy....How can i remove that blank line so that it will help for my project....
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.