jeffwilcox / wp-thememanager

Windows Phone ThemeManager allows for easy overriding of the Dark or Light themes
89 stars 26 forks source link

Cannot set a custom color for AppBar #20

Open richardaum opened 10 years ago

richardaum commented 10 years ago

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 commented 9 years ago

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();
};