How to customise watermark style?

Hi,

I know that I could apply a watermark template to SfTextBoxExt to change its style (e.g. font family, font size, etc.). I wonder how I could achieve this on the watermark (NoneDateText property) of DateTimeEdit.

Regards,
Arvin

3 Replies 1 reply marked as answer

UN Unknown Syncfusion Team August 7, 2020 11:35 AM UTC

Hi ArvinZJC, 

Thanks for contacting Syncfusion support. 

We have checked your requirement “Need to customize the font settings of NoneDateText property in DateTimeEdit” and it can be achieved by customizing the ContentControl with name “PART_EmptyContent” to your requirement after creating the style for DateTimeEdit control (Right click on DateTimeEdit in designer à Edit  template à Edit a copy). Please refer the below sample and screenshot for same. 


Screenshots :  

1.XAML: 
 

2.Output: 

 
 
 
Regards, 
Niranjan Kumar Gopalan 


Marked as answer

AR ArvinZJC August 8, 2020 04:55 PM UTC

Hi Niranjan,

Thanks much for your reply! However, how could I keep the MaterialLight style?

Regards,
Arvin


UN Unknown Syncfusion Team August 10, 2020 08:33 AM UTC

Hi Arvin, 

Thanks for your update. 

We have checked your requirement “Need to customize the font setting of NoneDateText property value along with MaterialLight theme applied” and it can be achieved by applying the Material theme first and rebuild it and follow the procedure mentioned in our previous update. Please refer the below video , sample and screenshot for same.  



Screenshot :  
 

Regards, 
Niranjan Kumar Gopalan 


Loader.
Up arrow icon