Unable to set color of the close buttons on a tab

Hi,

I am using the Office2016Colorful theme as my template but I seem to be unable to change the color of the close buttons on the tabs in the TabControlAdv.

Am I overlooking something? I tried setting various parameters but it never shows any difference,


7 Replies

SN Sudharsan Narayanan Syncfusion Team August 31, 2021 03:50 AM UTC

Hi Jeffrey,

Thanks for contacting syncfusion support,

We have checked the reported query that “Change the close button Back color“ from our side. We have prepared to achieve the requirement by using the
ShowCloseButtonHighLightBackColor and CloseButtonBackColor property. Please find the sample and code snippet below,

Code Snippet:
 
tabControlAdv1.ShowCloseButtonHighLightBackColor = true;
tabControlAdv1.CloseButtonBackColor = Color.LightYellow;
 

Sample: https://www.syncfusion.com/downloads/support/forum/168419/ze/CloseButtonColor1687916913

Please try with the above sample and let me know your concerns. We are happy to assist you.

Regards,
 
Sudharsan


JE Jeffrey August 31, 2021 07:19 AM UTC

Hi Sudharsan,


I have a bit of progress now yes, However I am not able to set the CloseButtonForeColor. It keeps resetting to 225, 225, 225.


For example, I'd like to have the ActiveTabColor just plain White with a Black 'X'


If I test something like this,


tabControl.CloseButtonBackColor = Color.Red;

tabControl.CloseButtonForeColor = Color.Black;

tabControl.CloseButtonHoverForeColor = Color.Black;

tabControl.CloseButtonPressedForeColor = Color.Black;


It does not show any effect only the CloseButtonBackColor works.




SN Sudharsan Narayanan Syncfusion Team September 1, 2021 02:56 PM UTC

Hi Jeffrey,

Thanks for the update.

Currently, we are analyzing your requirement of “Color property not works”. We will validate and update you the details on or before 03rd September 2021.

We appreciate your patience until then.

Regards,

Sudharsan


SN Sudharsan Narayanan Syncfusion Team September 7, 2021 03:48 AM UTC

Hi Jeffrey,

We can be able to reproduce the reported issue from our end and we have logged a bug report on this. The issue for this fix is included in NuGet on 28th September 2021. You can track the status of the issue by using below feedback link.

Feedback: https://www.syncfusion.com/feedback/28476/customized-closebutton-color-properties-are-not-working-in-tabcontroladvs


We appreciate your patience until then. 

Regards,
 
Sudharsan 



SN Sudharsan Narayanan Syncfusion Team September 29, 2021 03:51 AM UTC

Hi Jeffrey,

Thanks for the patience,

We have fixed the reported issue that “
Tab Close button color not reflected” from our end.

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: 19.2.0.55
            
Installation Directions:            
This patch should replace the files " Syncfusion.Tools.Windows.WPF” under the following folder.            
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]            
E.g. : $system drive:\Program Files\Syncfusion\Essential Studio\19.2.0.55\precompiledassemblies\19.2.0.55\ 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 19.2.0.55 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.  

Note: This Issue will be included in your upcoming NuGet and Main Release.
 
 
Please let us know if you need any further assistance on this. We will be glad to assist you.  

Regards,
 
Sudharsan 



JE Jeffrey September 29, 2021 06:31 AM UTC

Hi Sudharsan,


Thank you for the update and I'll install it and give it a shot when I have the time. 



SN Sudharsan Narayanan Syncfusion Team September 30, 2021 03:52 AM UTC

Hi Jeffrey,  
Thanks for the update. Please test at your end once you find time. Also, let us know if you need any other assistance. As always, we will be happy to assist you.  
Regards,
Sudharsan


Loader.
Up arrow icon