Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] TabBarBackgroundColor of ShellContent not instantly updating upon UserAppTheme changed #13123

Open
Cfun1 opened this issue Dec 12, 2020 · 4 comments

Comments

@Cfun1
Copy link

Cfun1 commented Dec 12, 2020

Description

When changing UserAppTheme, the styled TabBarBackgroundColor property with AppThemeBinding is not changing instantly but only when a navigation action is done.

Steps to Reproduce

  1. <Application.Resources>
     <Style TargetType="{x:Type ShellContent}">
         <Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Dark=red, Light=yellow}"/>
     </Style>
     </Application.Resources>
    
  2. Change UserAppTheme from light to dark or opposite.

Expected Behavior

Color of TabBarBackgroundColor takes effect instantly when UserAppTheme changes.

Actual Behavior

Color of TabBarBackgroundColor takes effect only after navigating in top tabs or bottom tabs (hanging the page).

Basic Information

  • Version with issue: 5.0.0.1791-pre5.
  • Platform Target Frameworks: Tested on android only.
  • Android Support Library / AndroidX Version: Android 10.0 API 29
@Cfun1 Cfun1 added s/unverified New report that has yet to be verified t/bug 🐛 labels Dec 12, 2020
@samhouts samhouts added this to New in Triage Dec 12, 2020
@rachelkang
Copy link
Contributor

@Cfun1 thanks for submitting this issue! It seems to be a duplicate of #12807 - can you confirm this?

@rachelkang rachelkang added the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Dec 22, 2020
@rachelkang rachelkang moved this from New to Needs Info in Triage Dec 22, 2020
@Cfun1
Copy link
Author

Cfun1 commented Dec 22, 2020

@rachelkang my issue is not about animation neither during app startup but during running, although I cannot confirm if the root cause of theses two issues is common, it could be.

@Redth Redth removed the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Jan 21, 2021
@PureWeen PureWeen moved this from Needs Info to New in Triage Jan 22, 2021
@jsuarezruiz
Copy link
Contributor

Can reproduce the issue:
Issue13123.zip
issue13123

@jsuarezruiz jsuarezruiz moved this from New to Needs Estimate in Triage Feb 8, 2021
@jsuarezruiz jsuarezruiz removed the s/unverified New report that has yet to be verified label Feb 8, 2021
@ChristianFrom
Copy link

ChristianFrom commented Mar 9, 2021

Same with iOS. Most of my elements change according to AppThemeBinding, but my FlyoutBackground doesn't change. It only changes when the app reloads.

@PureWeen PureWeen removed their assignment Aug 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Triage
  
Needs Estimate
Development

No branches or pull requests

6 participants