Change BackgroundColor for disabled SfComboBox

Hi @all!

I´m using some SfComboBox controls in our App, and some of them get disabled (IsEnabled = false) when the user selects some specific value.
The disabled SfComboBox then get´s a black BackgroundColor.
How can i change this color to gray?

Thanks for your help
Greetings

Thomas

1 Reply

PA Paul Anderson S Syncfusion Team October 26, 2018 04:26 AM UTC

Hi Thomas, 
 
Greetings from Syncfusion. 
 
Query:” BackgroundColor changed into Black when IsEnabled is set to false in SfCombobox” 
 
We are able to reproduce the reported issue in UWP platform and this can be occurred by setting the default styles which used for the UWP platform. This can be fixed by sample level to add a Styles for Xforms.UWP project in App.Xaml page. Please use the following code 
 
   
<ResourceDictionary> 
            <ResourceDictionary.ThemeDictionaries> 
            <SolidColorBrush x:Key="ToolTipBackgroundThemeBrush" Color="#FF2B2B2B" /> 
            <SolidColorBrush x:Key="TextBoxBackgroundThemeBrush" Color="#FF9B9B9B" /> 
            <SolidColorBrush x:Key="TextBoxForegroundThemeBrush" Color="#FFFFFFFF" /> 
            <SolidColorBrush x:Key="TextBoxFocusForegroundThemeBrush" Color="#FF000000" /> 
            <SolidColorBrush x:Key="SfTextBoxExtDisabledBackgroundThemeBrush" Color="#D3D3D3"/> 
            <SolidColorBrush x:Key="SystemControlForegroundBaseHighBrush" Color="#FF000000" /> 
            </ResourceDictionary.ThemeDictionaries> 
 
            <SolidColorBrush x:Key="SfTextBoxExtDisabledBackgroundThemeBrush" Color="#D3D3D3"/> 
</ResourceDictionary> 
 
 
Please find the sample from the following link 
 
 
Please let us know if you have any other concern. 
 
Regards, 
Paul Anderson 


Loader.
Up arrow icon