Hi,
I have XamNumericEditor that is set to Decimal Type. Is there any way to hide the cursor when the editor IsReadOnly Property is set to true. Having the cursor blinking like that while is read only will give the user the impression that the field is editable even though they wont be able to edit.
Please note that I can use the Enable/Disable property to avoid this issue, however the user wont be able to do any clip operations like copy/paste , and that is something required by users. So I wont to hide the cursor somehow and still get clip board operations
Thanks
Hello,
Thank you for your feedback. I am glad that I helped you resolve your issue.
Thanks again.
Thanks Stefan...that works great now.....I really appreciate your fast response and attention to this issue
Hello again,
I suggest you use the following style:
<Style TargetType="{x:Type igEditors:CaretElement}"> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type igEditors:XamNumericEditor}},Path=Tag}" Value="NoCursorEditor" > <Setter Property="Template"> <Setter.Value> <ControlTemplate/> </Setter.Value> </Setter> </DataTrigger> </Style.Triggers> </Style>
And set each one xamNumericEditor’s Tag that you don’t want to have Cursor to NoCursorEditor. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
Thanks for the fast reply. The solution you provided works fine if I have multiple XamNumericEditors that always behave the same way in terms of when to be ReadOnly and when not, but my case is little more complicated than this, because I have multiple NumericEditors that could behave differently at the same time to when each one is ReadOnly and when not....So is there a way I can do such thing and apply it to each XamNumericEditor depending on each condition on when to appy the style or not.
I hope I was clear enough :)
Thank you for your post. I have been looking through it and I suggest you use this style in the Window's Resources:
<Style TargetType="{x:Type igEditors:CaretElement}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate/> </Setter.Value> </Setter> </Style>
Please let me know if this helps you or you need further assistance.
Looking Forward for your reply.