(CS0122) TabRenderer2019 Is inaccesiable because of it's Protection level.

I've been trying to use the 2019 tab style but every time I seem to get this error. I've taken a look inside the references of the DLL I've got but it also doesn't contain or show a reference of 2019 Tab Style. I tried the answer on another post which didn't seem to work and only more errors.  


1 Reply

SN Sudharsan Narayanan Syncfusion Team January 14, 2022 03:13 PM UTC

Hi Aleida,

We have checked the reported error “TabRenderer2019' is inaccessible due to its protection level” with Office2019 Tab Style 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,
Sudharsan


Loader.
Up arrow icon