Theme not immediately applied to Framework Element added at runtime.

(I'm actually using SkinStorage, but there's not an option in the dropdown.)

In my application I have a TabControlExt to which I'm adding tabs that contain UserControls generated at runtime (the TabControlExt is data bound and this all works fine).

When I first add a tab containing the newly generated control the theme is not (visually) applied to the controls contained within. If I change to a different tab and then back, the theme is then apparent.

I say "(visually) applied", because before switching tabs it's clear that some elements of the theme are influencing the control (SfDataGrid is resizing columns as if the fonts have been changed, for example).

Is there any way I can force the generated user controls to redraw with the theme applied, or force SkinStorage to apply theme when the controls are first generated?

1 Reply 1 reply marked as answer

VR Vijayalakshmi Roopkumar Syncfusion Team August 12, 2020 10:36 AM UTC

 
Thank you for using our Syncfusion Products. 
 
From your update, we could understand that you want to apply the theme for all the controls in your application, for this purpose you can our SfSkinManager which is an advanced version of SkinStorage control. For more information about SfSkinManager, you can refer the following UG link: 
 
 
However if it does not meet your requirement, please clarify your requirement clearly by providing screenshot or video . It would be helpful for us to reach you out with the better solution. 
 
Please let us know if you have any other concerns. 
 
Regards, 
Vijayalakshmi VR 


Marked as answer
Loader.
Up arrow icon