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. (Last updated on: June 24, 2019).
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:

Created:

Updated:

Platform:

Replies:

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

Hello,

im trying to set a hintlabelstyle to the propertie HintLabelStyle

<textInputLayout:SfTextInputLayout Hint="Vereinbart Am"
                                                           HintLabelStyle="xxx"


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'
            </Style>

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. 
 
[App.XAML] 
<Application.Resources> 
        <syncTheme:SyncfusionThemeDictionary> 
            <syncTheme:SyncfusionThemeDictionary.MergedDictionaries> 
                <ResourceDictionary> 
                    <x:String x:Key="SfTextInputLayoutTheme">CustomTheme</x:String> 
                    <Color x:Key="SfTextInputLayoutHintColor">Red</Color> 
                    <Color x:Key="SyncPrimaryLightColor">Red</Color>                  
                </ResourceDictionary> 
            </syncTheme:SyncfusionThemeDictionary.MergedDictionaries> 
        </syncTheme:SyncfusionThemeDictionary> 
    </Application.Resources> 
 
Also, to know more about customization using themes check the below documentation link. 
 
 
Regards, 
Rachel. 


CONFIRMATION

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