Skip to content

HeaderBackgroundColor with AppThemeBinding #51

@eyeveye

Description

@eyeveye

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");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions