Change theme at runtime

I updated from version 18.2.0.58 to 18.3.0.51 and changing the theme at runtime the window no longer updates correctly.

The new theme will render correctly after restarting the application.

I am attaching a zip file with screen shots before and after changing themes.

The code I am using to update the theme is basically

                SfSkinManager.ApplyStylesOnApplication = true;
                SfSkinManager.SetVisualStyle(obj, visualStyle);

Do I need to do something different?


Attachment: BeforeAndAfter_8c714b6b.zip

4 Replies 1 reply marked as answer

VR Vijayalakshmi Roopkumar Syncfusion Team November 25, 2020 01:38 PM UTC

Hi Dennis 
 
Thank you for contacting Syncfusion Support. 
 
We have checked the reported behavior that theme does not applied properly on upgrading to 18.3.0.51v in our simple sample, prepared according to the screenshot you provided. But the theme does work properly with your codes. Please find the screenshot and sample from the following location: 
 
 
Screenshot: 
 
 
 
Kindly check the sample and screenshot and let us know whether our replication scenario is same with yours. If not, modify our into issue reproducible. It would be helpful for us to proceed on it further. 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Vijayalakshmi VR 



DB Dennis Bragg November 26, 2020 01:36 PM UTC

Hi Vijayalakshmi,

Thank you for the quick response. I have modified your sample so that you can click the Light button to change the theme. You should be able to see the problem.

Dennis

Attachment: Skinmanager_sample_54f29bdc.zip


VR Vijayalakshmi Roopkumar Syncfusion Team November 27, 2020 03:07 PM UTC

Hi Dennis 
 
Thank you for your update. 
 
We have checked the reported behavior with SfSkinManager and able to reproduce it. Currently, we are validating this behavior and update you the details on the 1st Dec, 2020. 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Vijayalakshmi VR 



VR Vijayalakshmi Roopkumar Syncfusion Team January 26, 2021 11:36 AM UTC

Hi Dennis 
 
Sorry for the delay and we are apologizing for not answering at the mentioned date. However the reported issue that changing the Light theme to dark at runtime , the theme is not applied correctly. And this case been resolved in our latest version 18.4.0.35, so we request you to upgrade to our latest version in order to get the issue fixed, else let us know your currently using Syncfusion Product version details, it would be helpful for us to provide you the patch accordingly. 
 
 
Please let us know if you need any other assistance on this . 
 
Regards, 
Vijayalakshmi VR 


Marked as answer
Loader.
Up arrow icon