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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HintLabelStyle didnt work , need example to set the TextColor

Thread ID:





150346 Jan 2,2020 11:25 PM UTC Jan 3,2020 06:21 AM UTC Xamarin.Forms 1
Tags: SfTextInputLayout
Johannes Meyer
Asked On January 2, 2020 11:25 PM UTC


im trying to set a hintlabelstyle to the propertie HintLabelStyle

<textInputLayout:SfTextInputLayout Hint="Vereinbart Am"

this is the style wich is not working:

            <!-- HintLabelStyle -->
            <Style x:Key="HintLabelStyleDefault" TargetType="textInputLayout:LabelStyle">
                <Setter Property="TextColor" Value="Black"/> <<<<< 'this value TextColor didnt exist at LabelStyle'

How is the style correct i need to change the TextColor of the Hint in the SfTextInputLayout.

Greets Johannes

Rachel A [Syncfusion]
Replied On January 3, 2020 06:21 AM UTC

Hi Johannes, 
Greetings from Syncfusion. 
We have provided support to set the text color for the hint by specifying the keys in theme dictionary as provided in the below code snippet. 
                    <x:String x:Key="SfTextInputLayoutTheme">CustomTheme</x:String> 
                    <Color x:Key="SfTextInputLayoutHintColor">Red</Color> 
                    <Color x:Key="SyncPrimaryLightColor">Red</Color>                  
Also, to know more about customization using themes check the below documentation link. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon