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

SfTextBox : Background and foreground problem

I use a SfTextBoxExt like this in a UWP :

SfTextBox:SfTextBoxExt HorizontalAlignment="Center" VerticalAlignment="Center" Width="280" Height="320" AcceptsReturn="True" TextWrapping="Wrap" InputScope="Text" FontSize="14" Background="AntiqueWhite" Foreground="Red"

My problem is Background and Foreground colors are only applied when the control lost focus ! When it has focus background is white en foreground black :(
I use the last version of Syncfusion UWP

This is a bug or normal ?

5 Replies

PB Priyanga Balasubramaniam Syncfusion Team November 1, 2016 01:07 PM UTC

Hi Christophe,

Thank you for contacting Syncfusion Support.

We have implemented our SfTextBoxExt based on MS TextBox behavior. While checking the focused behavior in MS TextBox, it also has same focus behavior as like our control.

We have prepared the workaround sample to meet your requirement. In this sample, we have overridden the SfTextBoxExt style and avoid the changing the Background color to White when the Visual State is "Focused".

Please download the sample from the below link.


Priyanga B

CC Christophe Cordonnier November 1, 2016 05:08 PM UTC

Thanks a lot :)

All works like i want.

Congratulations for all !

PB Priyanga Balasubramaniam Syncfusion Team November 2, 2016 03:53 AM UTC

Hi Christophe,

Thank you for the update.

we are very happy to assist you.

Please let us know if you need any other assistance.

Priyanga B

PD Pierre-Christophe DUS December 15, 2016 06:00 PM UTC

Please apologize me, I wasn't in the good topic: good topic. You can delete my comments here!

AP Ashwini Paranthaman Syncfusion Team December 16, 2016 06:27 AM UTC

Hi Christophe, 
As per your request we have removed the last 2 updates from this forum. 
Ashwini P. 

Live Chat Icon For mobile
Up arrow icon