<inputLayout:SfTextInputLayout.Resources>
<syncTheme:SyncfusionThemeDictionary>
<syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
<ResourceDictionary>
<x:String x:Key="SfTextInputLayoutTheme">CustomTheme</x:String>
<!--Hint Color for focused state-->
<Color x:Key="SyncPrimaryLightColor">Black</Color>
<!--Hint Color for default state-->
<Color x:Key="SfTextInputLayoutHintColor">Gray</Color>
<!--Border Color for focused state-->
<Color x:Key="SyncPrimaryColor">DarkCyan</Color>
<!--Border Color for default state-->
<Color x:Key="SfTextInputLayoutLineColor">Gray</Color>
<!--Helper text Color for default state-->
<Color x:Key="SfTextInputLayoutHelperTextColor">BlueViolet</Color>
<!--Character count text Color for default state-->
<Color x:Key="SfTextInputLayoutCounterLabelColor">DarkGoldenrod</Color>
<!--Error text Color for default state-->
<Color x:Key="SfTextInputLayoutErrorTextColor">Red</Color>
</ResourceDictionary>
</syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
</syncTheme:SyncfusionThemeDictionary>
</inputLayout:SfTextInputLayout.Resources> |
<Application.Resources>
<syncTheme:SyncfusionThemeDictionary>
<syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
<ResourceDictionary>
<x:String x:Key="SfTextInputLayoutTheme">CustomTheme</x:String>
<!--Hint Color for focused state-->
<Color x:Key="SyncPrimaryLightColor">Black</Color>
<!--Hint Color for default state-->
<Color x:Key="SfTextInputLayoutHintColor">Gray</Color>
<!--Border Color for focused state-->
<Color x:Key="SyncPrimaryColor">DarkCyan</Color>
<!--Border Color for default state-->
<Color x:Key="SfTextInputLayoutLineColor">Gray</Color>
<!--Helper text Color for default state-->
<Color x:Key="SfTextInputLayoutHelperTextColor">BlueViolet</Color>
<!--Character count text Color for default state-->
<Color x:Key="SfTextInputLayoutCounterLabelColor">DarkGoldenrod</Color>
<!--Error text Color for default state-->
<Color x:Key="SfTextInputLayoutErrorTextColor">Red</Color>
</ResourceDictionary>
</syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
</syncTheme:SyncfusionThemeDictionary>
</Application.Resources> |
Hi, I was able to customize the text input layout and remove the border, change the hint font style and colors.
This worked fine when using a Xamarin Forms "Entry" control inside the TextInputLayout like in the provided example.
However, if I use a SfComboBox control instead, these style customization seems to be ignored. The border is always displayed.
Could you provide another example of this, but using a SfComboBox instead?
Currently, our development team is validating the reported problem and will update you with further details on or before November 22, 2022.
We have prepared the sample based on the provided details with the SfComboBox as input view of SfTextInputLayout by customizing styles. Please find the modified sample from the attachment. If your requirement is different from this, please revert with more details about your requirement. It will help us provide an appropriate solution at the earliest.