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

SfTextInputLayoutStyle override default style for disabled state

Thread ID:





143453 Mar 20,2019 04:54 PM UTC Mar 21,2019 06:45 AM UTC Xamarin.Forms 1
Tags: SfTextInputLayout
Jan Minarik
Asked On March 20, 2019 04:54 PM UTC

I use Xamarin.Forms and Syncfusion.Xamarin.SfTextInputLayoutStyle

IsEnabled is set to false. I would like override style (text color and border color) for this UI state . It’s possible? 

Bharathiraja K [Syncfusion]
Replied On March 21, 2019 06:45 AM UTC

Hi Jan, 
Greetings from Syncfusion,  
When the text input layout is in a disabled state, we can override the color of text (hint label, helper text, error text, counter label) and border (line/Border color in filled/outlined type text input layout respectively) through the resource keys in control style resource dictionary. You can change the text color of input view (like Entry) in SfTextInputLayout by setting TextColor property. To know more about these, please find the documentation link below,  
We have provided the code snippet and sample link for the same, 
Code Snippet [XAML]: 
                    <x:String x:Key="SfTextInputLayoutTheme">CustomTheme</x:String> 
                    <Color x:Key="SfTextInputLayoutFilledLineDisabledColor">Blue</Color> 
                    <Color x:Key="SfTextInputLayoutOutlinedLineDisabledColor">Blue</Color> 
                    <Color x:Key="SfTextInputLayoutDisabledHintColor">Blue</Color> 
                    <Color x:Key="SfTextInputLayoutFloatedHintDisabledColor">Blue</Color> 
                    <Color x:Key="SfTextInputLayoutHelperTextDisabledColor">Blue</Color> 
Sample 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