Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the accentcolor of an input control does not take affect until you deselect and reselect the control #624

Open
DeliriumCode opened this issue Mar 17, 2024 · 0 comments
Labels
enhancement New feature or request input-field-group
Milestone

Comments

@DeliriumCode
Copy link

I have customisable themes within my app, I have the accent color bound via data binding to the current color selections, however you have to deselect the textcontrol and reselect it to apply the new color.

 <VerticalStackLayout Padding="8" Margin="0">
     <material:TextField Title="{x:Static resx:GeneralText.Group_Name}" Text="{Binding Name}"  AccentColor="{Binding ColorAccent}">
         <material:TextField.Validations>
             <validation:RequiredValidation Message="{x:Static resx:GeneralText.Validation_Required}" />
         </material:TextField.Validations>
     </material:TextField>

     <controls:ColorPalette
         SelectedColor="{Binding ColorAccent, Mode=TwoWay}"
         Colors="{StaticResource ColorPaletteArray}"/>
 </VerticalStackLayout>
@enisn enisn added input-field-group enhancement New feature or request labels Mar 20, 2024
@enisn enisn added this to the v2.9 milestone Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request input-field-group
Projects
None yet
Development

No branches or pull requests

2 participants