The highlight is not applied when the control is not visible

I´m using Syntax Edit Control in a project with custom Language. However, when I modify the Text property in code behind and the Edit control is not visible in screen, after turn visible the syntax highlight is not applied and the text is black. After I change the text by keyboard, the highlight is applied  only on the row changed.

Are there a method of Syntax Edit control to force the highligth apply when I want (when the visibility of control changes)?

I take two printscreens to exemplify the problem:


After each row is modified by keyboard:



10 Replies

EM Elakkiya Muthukumarasamy Syncfusion Team February 8, 2021 12:58 PM UTC


Hi Guilherme Siqueira, 

Greetings form Syncfusion. 
We have checked your reported query “The highlight is not applied when the control is not visible”. We would like to let you know that you can highlight the syntax by using the DocumentLanguage property. Please refer the below help documentation link 


Also, you can able to create Custom Language configurations to apply syntax highlighting and outlining. Please refer the below help documentation link. 


We hope the above solution helps. If not please share the below details that will be helpful for us to provide a prompt solution on this. 
1.If you are using DocumentLanguage property to highlight the syntax means please share the DocumentLanguage (like c or csharp etc..) 
2.Share the code example how you are using it. 
  
Regards, 
Elakkiya 



GU Guilherme February 9, 2021 10:29 PM UTC

Thank you for your answer,

I made a sample project in which it is possible to observe the problem that I described.

The files are attached.

Attachment: TesteSyntaxEdit_bf10a80.zip


VR Vijayalakshmi Roopkumar Syncfusion Team February 10, 2021 12:40 PM UTC

Hi Guilherme 
 
Thank you for your update. 
 
We have checked the reported behavior “Syntax Highlighting is not shown properly on changing the visibility of control at runtime” with EditControl using your sample and we were able to reproduce it. We have logged a report on this and the patch for the same is estimated to be avaialble on 24th Feb, 2021. Please track the status of this feedback using the following feedback link: 
 
 
Please let us know if you have any other concerns. 
 
Regards, 
Vijayalakshmi VR 



GU Guilherme February 10, 2021 06:13 PM UTC

I am following the feedback link and wait for the new patch.

thank you


VR Vijayalakshmi Roopkumar Syncfusion Team February 11, 2021 04:27 AM UTC

Hi Guilherme 
 
Thank you for your update. 
 
We will update you the patch as promised earlier before on 24th Feb, 2021. 
 
Please let us know if you have any other concerns. 
 
Regards, 
Vijayalakshmi VR 



EM Elakkiya Muthukumarasamy Syncfusion Team February 24, 2021 04:04 PM UTC

Hi Guilherme, 
    
Thanks for your patience.                                        
   
The reported issue” Syntax Highlighting is not shown properly on changing the visibility of control at runtime” has been fixed.  
 
 
This patch which can be download from the below links.   
    
Recommended approach - exe will perform automatic configuration.    
    
Please find the patch setup from below location:    
 
Patch link :    
Please find the patch assemblies alone from below location:    
 
    
Assemblies Link:    
    
Nuget link:     
   
    
Assembly Version: 18.4.0.39 
    
Installation Directions:    
This patch should replace the files "Syncfusion.Edit.WPF” under the following folder.    
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]    
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\18.4.0.39\precompiledassemblies\18.4.0.39\4.6    
    
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you must manually copy and paste them to the preferred location or you must run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.    
    
    
Disclaimer:    
Please note that we have created this patch for version 18.4.0.39 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.  Please let us know, if you are using any other Syncfusion version, we will provide patch in your version. 
    
Regards,    
Elakkiya 



GU Guilherme February 24, 2021 07:58 PM UTC

Hi Elakkiya,

I updated the package to version 18.40.39 by "Manage NuGet package..." and run the example project "TesteSyntaxEdit_bf10a80.zip" that I sent you on February 9, 2021, but the same issue is present. I downloaded the package nuget by your link and install from nupkg file in my hd but de issue persists.

Am I doing something wrong to install the package? Could you verify that the package is correct?


EM Elakkiya Muthukumarasamy Syncfusion Team February 25, 2021 09:16 AM UTC

Hi Guilherme, 
 
Sorry for the inconvenience. 
 
We have checked your query “The reported issue is not working in the Nuget pacakage added by Manage NuGet package..." and we would like to let you know that this issue was resolved by installing the nuget packages by using the below link. 
 
 
If you want to install the Nuget package by Manage NuGet package the fix for this issue would be include in our upcoming weekly nuget release, expected to be publish by next week [2nd March 2021].We will update once it gets published. We appreciate your patience until then 
 
Please refer the below link for more information. 
 
 
Please try it with the provided solution and let us know if you need any further assistance on this. 
 
Regards, 
Elakkiya 



GU Guilherme March 2, 2021 02:30 PM UTC

Hi Elakkiya,

Today I updated the Nuget package by Manage NuGet package and it is working correctly now.
Thanks for your help
Regards


VR Vijayalakshmi Roopkumar Syncfusion Team March 3, 2021 05:05 AM UTC

Hi Guilherme 
 
Thank you for your update. 
 
We were glad to know that the reported behavior with EditControl has been resolved at your end using our fix.  
 
Please let us know if you need any other assistance on this. 
 
Regards, 
Vijayalakshmi VR 


Loader.
Up arrow icon