I use textblock.GetPositionFromPoint to get text under cursor. But in 10.3, xamtexteditor use simpletextblock. Is there any similar function?
Hello Shengjie,
I have been investigating your issue and found out that the implementation of the SimpleTextBox inside the XamTextEditor was needed to improve performance on the XamDataGrid. After trying a few things I think your best option would be to revert to using a TextBlock in the XamTextEditor. You can do this by altering a copy of the original template’s Template property setter for the XamTextEditor. You can find it the EditorsGeneric_Express.xaml (here is default installation path: C:\Program Files (x86)\Infragistics\NetAdvantage 2010.3\WPF\DefaultStyles\Editors). All you have to do is switch the SimpleTextBlock with the previously used element which is actually preserved in the part from the ControlTemplate I have plucked from the above mentioned file:
<!-- MD 8/12/10 - TFS26592 - Use the SimpleTextBlock instead -->
<!--<TextBlock x:Name="TextBlock"-->
<igwindows:SimpleTextBlock x:Name="TextBlock" …
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hello,
Since you haven’t responded to my reply I assume you have probably managed to overcome it yourself. Please let me know if you still require assistance on the matter.
Best regards Petar.
I have been looking into your request and was wondering if you could describe in more details what exactly are you trying to achieve so that I can provide you with a suitable suggestion around this.
Looking forward to your reply.