[Sv] How to change control font after apply theme?

**Hi Durai

After loading the assembly officetheme colorful, I have set the theme on the form, but my textbox, whether I set up the theme or not, cannot change the font, the font seems to be set by default according to the theme?
How can i do change control font?

14 Replies

TG The GridLock April 26, 2020 06:35 AM UTC

Seems like I have to set the multiline property to work!


AI Anirudhan Iyyappan Syncfusion Team April 27, 2020 01:40 PM UTC

Hi khanh, 

Thanks for contacting Syncfusion support. 

We have prepared a sample based on your requirement. But as you mentioned, we have not faced any issues. For further references please see the sample and video below. 



If we have misunderstood any of your query, please let us know and share some more information. we are happy to assist you. 

Regards, 
Anirudhan 



TG The GridLock April 27, 2020 02:01 PM UTC

Hi, the sample file is probably wpf not winforms so I can't try it, can you change to winforms?


TG The GridLock April 27, 2020 02:44 PM UTC

Hi,
I have accessed your file, the problem probably lies here:
In vsto2019, my control theme.name = "office2019colorful" but I can't set up style property for control  (I am using office365). 
my project can only apply theme to 2016 and below, so when I build my winforms: control's style is default)



/


AI Anirudhan Iyyappan Syncfusion Team April 28, 2020 12:29 PM UTC

Hi khanh, 
 
Thanks for your update. 
 
Based on your requirement we have prepared an issue by setting the Office2019Colorful theme to control. Please refer to the below sample and Ug Document for further references. 
 
 
 
Please let us know if you need further details on this, we will happy to assist you. 
 
Regards, 
Anirudhan 



TG The GridLock April 28, 2020 12:45 PM UTC

Hi Anirudhan, 
I will reproduce the problem as soon as possible. Current setup office2016theme or multiline reservation is working for me.


AI Anirudhan Iyyappan Syncfusion Team April 29, 2020 12:13 PM UTC

Hi khanh,  
  
Thanks for your update. 
 
We will wait until we hear from you. 
 
Regards, 
Anirudhan 



TG The GridLock June 17, 2020 07:44 AM UTC

Hi Anirudhan ,
Set up a textbox with the following 3 properties:
1. enable = false
2. multiline = true
3. themename = office2016Colorful
Add a button to enable the textbox (press after loading the form)
press the button => the textbox does not change the text color (it remains the same gray color)
is it an error?


AI Anirudhan Iyyappan Syncfusion Team June 18, 2020 01:02 PM UTC

Hi The GridLock, 
 
Thanks for your update. 
 
We have checked your query “Theme is not applied for TextBoxExt”.  We suspect that you may not Enabled the property “ThemesEnabled” to true  for the TextBoxExt. Please refer to the below Ug Document for further referemces. 
 

Regards, 
Anirudhan 



TG The GridLock June 18, 2020 01:45 PM UTC

Hi Anirudhan ,
textbox didn't change font color after enabled, you can see myvideo:


Attachment: Video_200618_204407_41cbd4f5.rar


TG The GridLock June 18, 2020 01:49 PM UTC

my samplefile

Attachment: Searching_d942b1bb.rar


DV Duraimurugan Vedagiri Syncfusion Team June 19, 2020 01:11 PM UTC

Hi Gridlock,

Thanks for your update.

We were able to reproduce the reported issue "TextBoxExt text is unreadable in Office2016Colorful theme when enabled" and confirmed it is defect. The defect report is logged, so please confirm your syncfusion product version. Based on your version we will provide you the patch on July 3rd, 2020.

You can track the status through the following feedback link:

https://www.syncfusion.com/feedback/15397/textboxext-text-is-unreadable-in-office2016colorful-theme  

Regards,
Duraimurugan V


TG The GridLock June 20, 2020 02:01 AM UTC

Ok Durai.!


AI Anirudhan Iyyappan Syncfusion Team June 22, 2020 05:28 AM UTC

Hi The GridLock, 
 
Thanks you update. 
 
Please confirm us your current Syncfusion product version, so that we can provide patch on it. 
 
Regards, 
Anirudhan 


Loader.
Up arrow icon