I use textblock.GetPositionFromPoint to get text under cursor. But in 10.3, xamtexteditor use simpletextblock. Is there any similar function?
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.
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
Hi
So what you want me to do is rebuild a editors assembly for this case, right?
Hi,
Excuse me if I wasn’t clear enough. I meant you can do this by copying the original style from the DefaultStyles folder pasting it in your application as Resource of one of your elements and altering a single row.
Please let me know if you require any further clarifications on the matter.
Thanks. It is ok.
Would you please just update me on whether you managed to get this to work on your side. If yes please verify the thread as answered. Thanks in advance.