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

HeaderBackgroundColor with AppThemeBinding #51

Open
eyeveye opened this issue Jan 8, 2021 · 0 comments
Open

HeaderBackgroundColor with AppThemeBinding #51

eyeveye opened this issue Jan 8, 2021 · 0 comments

Comments

@eyeveye
Copy link

eyeveye commented Jan 8, 2021

Hi,

When trying to switch Theme, the HeaderBackgroundColor does not reflect immediately. It only changed its color when reloading the whole page.

        HeaderBackgroundColor="{AppThemeBinding Dark=#353535,
                                                        Light=#00C8FF}" 

I tried to set the headerbackgroundcolor from code behind, but it is also not successfully change.
var tv = Page.FindByName("tv");
if (App.AppTheme == App.Theme.Dark)
{
tv.HeaderBackgroundColor = Color.FromHex("#353535");
}
else
tv.HeaderBackgroundColor = Color.FromHex("#00C8FF");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant