We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

how to maintain font size when theme is applied ?

Hi all.

I have some buttons and labels on a form, so I'm planning to add some theme options to the form.

but it seems that when the theme is selected, the font size in the buttons and labels doesn't maintain the size I set earlier, and it looks like it's the theme's default size. 

any suggestions for that?

Thank You.

10 Replies 1 reply marked as answer

DM Dhanasekar Mohanraj Syncfusion Team October 21, 2022 02:02 PM UTC


The provided details are not enough to proceed further. Could you please share the below things,

  1. In Which controls you are facing the reported issue?

  2. Video illustration of the reported issue

It will be helpful for us to check on it and provide you with a solution at the earliest.


Dhanasekar M.

RI RIDWAN October 22, 2022 09:27 AM UTC

kkoyTfXSHd.pngsfButton1 and sfButton2 themes are not applied

  sfButton1 and sfButton2 after themes is applied

sfButton1 and sfButton2 text before applying the theme I set them with the font setting "Segoe UI Semibold; 20pt".

but, after I press "Set style Office2016Black" the text font size of sfButton1 and sfButton2 changes not as I set initially.

I want, when the style is applied, both buttons stay with the text size and font type I set.

sorry if my explanation is wrong

RI RIDWAN replied to Dhanasekar Mohanraj October 22, 2022 09:46 AM UTC

Sorry in advance if it's a hassle.. to achieve what I want it seems to just set this code on each control:

            sfButton1.Font = new Font(" Segoe UI Semibold", 18F);

but is there any other way to make it look simple? instead i add that code to all the controls in some form i have ?

SS Sethuramkumar Senthilkumar Syncfusion Team October 24, 2022 01:31 PM UTC


We are currently checking your reported issue with the provided information. So, we need two more business days to validate this.
We will update with further details on October 27, 2022.

We appreciate your patience until then.

Sethuramkumar S

RI RIDWAN replied to Sethuramkumar Senthilkumar October 25, 2022 01:21 PM UTC

I am happy to wait for further news sir..

Thank you for your response.

GT Gokul Thanudhas Syncfusion Team November 3, 2022 01:38 PM UTC

Hi Ridwan,

We have confirmed the reported scenario is a defect and logged a report for the reported scenario “Font Size is changed while changing the theme at runtime in SfButton”. We will provide the fix in the NuGet version on 22nd November 2022.

You can track the status of this defect using the following feedback link:       

Font Size is changed while changing the theme at runtime in WinForms | Feedback Portal (syncfusion.com)

If you have any more specification replication procedures or a scenario to be tested, you can add it as a comment in the portal.


Please let us know if you need any further assistance.


Gokul T

HN Harinath Navaneethakrishnan Syncfusion Team November 23, 2022 11:11 AM UTC

Sorry for the inconvenience, 


We are still working on this issue with high priority. We will update you on the fix in our upcoming NuGet release which is scheduled on 29th November 2022. 


We appreciate your patience until then. 

Marked as answer

HN Harinath Navaneethakrishnan Syncfusion Team November 29, 2022 02:17 PM UTC

We have included the fix in our latest Weekly NuGet release v20.3.0.59 which is available for download (https://www.nuget.org/). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

RI RIDWAN replied to Harinath Navaneethakrishnan November 30, 2022 03:57 AM UTC

I've tried it, and the results are amazing..

HN Harinath Navaneethakrishnan Syncfusion Team November 30, 2022 03:10 PM UTC

We are glad to know that your issue has been fixed. Please let us know if you need any other assistance. We are happy to assist you.

Live Chat Icon For mobile
Up arrow icon