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

SfTextInputLayoutStyle override default style for disabled state

Thread ID:

Created:

Updated:

Platform:

Replies:

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

I use Xamarin.Forms 3.6.0.264807 and Syncfusion.Xamarin.SfTextInputLayoutStyle 17.1.0.32-beta.

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]: 
    <ContentPage.Resources> 
        <syncTheme:SyncfusionThemeDictionary> 
            <syncTheme:SyncfusionThemeDictionary.MergedDictionaries> 
                <ResourceDictionary> 
                    <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> 
                </ResourceDictionary> 
            </syncTheme:SyncfusionThemeDictionary.MergedDictionaries> 
        </syncTheme:SyncfusionThemeDictionary> 
    </ContentPage.Resources> 
 
 
Sample link, 
 
Regards, 
Bharathi. 


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

;