How to set the disabled text color of SfAutoComplete?

I would like the text color of a disabled SfAutoComplete to be the same color as an enabled SfAutoComplete. After setting a global style with my intended visual states for the SfAutoComplete, I'm unable to see the expected changes when my control is disabled. The documentation doesn't explain how to customize the visual states so I'm not sure if I have included the correct visual states. Here's the code I've included in my App.xaml:


            <Style TargetType="cc:MySfAutoComplete">
                <Setter Property="ShowClearButton" Value="False"/>
                <Setter Property="VisualStateManager.VisualStateGroups">
                    <VisualStateGroupList>
                        <VisualStateGroup x:Name="CommonStates">
                            <VisualState x:Name="Normal"/>
                            <VisualState x:Name="Focused"/>
                            <VisualState x:Name="Disabled">
                                <VisualState.Setters>
                                    <Setter Property="TextColor" Value="Black"/>
                                </VisualState.Setters>
                            </VisualState>
                        </VisualStateGroup>
                    </VisualStateGroupList>
                </Setter>
            </Style>

1 Reply

AK Arunachalam Kandasamy Raja Syncfusion Team May 17, 2023 07:20 AM UTC

Hi Bryson,

 

Thanks for contacting Syncfusion support.

 

We were unable to reproduce the reported scenario on our end. We prepared the sample based on provided code snippet. Kindly review the attached sample and apply any required modifications to reproduce the problem. Afterward, kindly forward the sample to us, as it would enable us to conduct a more thorough investigation of the reported query. Please let us know if you have any other queries.

 

Regards,

Arunachalam K


Attachment: AutoCompleteSampleF182360_9acce96b.zip

Loader.
Up arrow icon