Themes not working

Hello, 

Here's the situation: We are using SfForm with SkinManager to change the form theme. The problem is when we are trying to add a form(subform) via runtime to a TabControlAdv in another form, it seems like the SkinManager is partially working, I mean some object like TabControlAdv successfully adjusted by the SkinManager except some objects like SfNumericTextBox.

We add the "subform" to  the TabControl using this code:

tabConsumer.Controls.Add(new ConsumerCoreDetails(Operation, dataService, data)
{
    TopLevel = false,
    FormBorderStyle = FormBorderStyle.None,
    Dock = DockStyle.Fill,
    ConsumerTypeList = ConsumerTypes.List
});

tabConsumer.Controls[0].Show();

We already tried running the "subform" directly by clicking a button and the theme applying with no problem, the problem just really persist when we are trying to add  that "subform" to a TabControlAdv on runtime. 

Hoping for a solution to our problem. Thank you.

3 Replies

ON Olety Nikhilesh Olety Nagendra Syncfusion Team March 11, 2020 02:18 PM UTC

 
Thank you for contacting Syncfusion support. 
 
Based on provided information we understood you are adding SfForm into TabPageAdv in run time, we tried to replicate same in a simple sample. 
 
Firstly, we have added a TagPageAdv in designer and then added the SfForm in constructor and then with a button click we have added a new TabPageAdv with SfForm. Comparing the both we noticed a color difference in right border.  But the theme was applied properly to both SfForm and SfNumericTextBox. 
 
Please refer the image below. 
Image 1: TabPageAdv added in designer   
 
 
Image 2: TabPageAdv added in button click  
 
 
 
 
Please let us know if this is the issue you are concerned or if you have any different issue, please modify the sample based on your scenario. 
 
Regards, 
Nikhilesh O 



ER Erano March 12, 2020 08:58 AM UTC

Hello, 

Thank you for the reply, we already make it work by following your samples. The only remaining problem is we still encounter those same issues when we are using SfDataPager. We also tried it on the sample project you sent to us and still SfDataPager not aligning to the theme properly. I attached the modified project you sent to us previously.

Thank you again for future reply.

Attachment: SkinManager152266_9d10d7b.zip


ON Olety Nikhilesh Olety Nagendra Syncfusion Team March 13, 2020 01:06 PM UTC

Hi Erano, 
  
We have created a new incident under your Direct trac account for the newly reported issue with SfDataPager. We suggest you follow up with the incident for further updates. Please log in using the below link.  
 
  
Regards, 
Nikhilesh 


Loader.
Up arrow icon