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

Cannot set a custom color for AppBar #20

Open
richardaum opened this issue Sep 6, 2014 · 1 comment
Open

Cannot set a custom color for AppBar #20

richardaum opened this issue Sep 6, 2014 · 1 comment

Comments

@richardaum
Copy link

I want to set a specific color for just one specific AppBar dynamically created, but ThemeManager always override the color of this AppBar. Note than there is others AppBar that need to be overrided, but just one (dynamically created) I dont want this behaviour, I want a custom color. Is that possible?

@frostieDE
Copy link
Contributor

If you want to set a specific color for just one specific ApplicationBar, you have to create and attach this ApplicationBar after the page has loaded. You can make use of the Loaded-Event of a PhoneApplicationPage. For example, you can put the following code inside your constructor of the Page:

Loaded += (s, e) => {
    CreateApplicationBarHere();
};

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

2 participants