Error when selecting TabStyle Office2019Style on ToostrioEx control

I had to select XPToolbar because ToolstripEx control is not listed in the dropdown.

I'm using ToolstripEx control with Visual Studio 2019 and Syncfusion Controls 18.2.0.44. When I change the TabStyle to Office2019Style, I get the following error.

Syncfusion.Windows.Forms.Tools.Tablendereroffice2019 is not accessible in this context because it is 'friend'

All the other styles don't give any errors. Can you please advise how I can use Office2019Style? .Net framework is 4.6

1 Reply 1 reply marked as answer

VR Vijayalakshmi Roopkumar Syncfusion Team September 24, 2020 04:36 PM UTC

Hi Tom, 
 
Thank you for contacting Syncfusion Support. 
 
We have checked the reported error “TabRendererOffice2019' is inaccessible due to its protection level” with Office2019Style TabStyle and we are able to reproduce it. It occurs , due to this property has been maintained as internal. We are maintaining this property , for the existing customer. However, to customize the Office2019Colorful style for TabControlAdv, you can set it using Office2019Theme.WinForms assembly. Please find the code for the same. 
 
Program.cs 
 
 
// Loading Office2019Theme assembly 
SkinManager.LoadAssembly(typeof(Office2019Theme).Assembly); 
 
 
Form1.cs 
 
 
//Apply office2019colorful style 
tabControlAdv1.ThemeName = "Office2019Colorful"; 
 
 
 
 
 
 
 
You can refer more about our latest SfSkinManager themes using the following link: 
 
 
Please try our solution and let us know if it meets your requirement. 
 
Regards, 
Vijayalakshmi VR 


Marked as answer
Loader.
Up arrow icon