Skip to content

[Bug] [V1.3] SfTextInputLayout does not update its color when changing theme sometimes #130

Closed
@malsabi

Description

@malsabi

Description

Here is an example of my xaml snippet for using the SfTextInputLayout. I'm not sure if the issue is from my side or not, but sometimes the color works properly when changing the theme but sometimes the color is not updated. I can see this issue in Windows, iOS and android.

<inputLayout:SfTextInputLayout Grid.Row="0"
                                 Hint="{ext:Translate Name=Assessments_SearchPlaceHolder}"
                                 IsEnabled="{Binding IsBusy, Converter={StaticResource InvertedBoolConverter}}"
                                 Style="{StaticResource TextInputLayoutStyle}">
<inputLayout:SfTextInputLayout.LeadingView>
<Image Aspect="Center"
                 Source="{StaticResource SearchIcon}" />
</inputLayout:SfTextInputLayout.LeadingView>
 
      <Entry Text="{Binding SearchTextQuery}"
             Style="{StaticResource TextInputEntryStyle}">
<Entry.Behaviors>
<toolkit:EventToCommandBehavior EventName="TextChanged"
                                              Command="{Binding SearchTextQueryChangedCommand, x:DataType=viewModels:AssessmentsViewModel}"
                                              BindingContext="{Binding BindingContext, Source={x:Reference Root}, x:DataType=ContentPage}" />
</Entry.Behaviors>
</Entry>
 
      <VisualStateManager.VisualStateGroups>
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="PointerOver">
<VisualState.Setters>
<Setter Property="ContainerBackground" Value="{toolkit:AppThemeResource Shade3Color}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="ContainerBackground" Value="{toolkit:AppThemeResource Shade4Color}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</VisualStateManager.VisualStateGroups>
</inputLayout:SfTextInputLayout>

Steps to Reproduce

No response

Version with bug

1.0.3

Is this a regression from previous behavior?

No, this is a new issue

Last Known Working Version

1.0.2

Affected platforms

Windows

Affected Platform Versions

No response

Have you found a workaround?

No workaround

Relevant log output

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions